Dynamic PaintingStrategy?

V

Vision

New member
2019 Donor
Morning, can anyone help here? I want to use conditional changes to paintingstrategy and can't get it working. Sample code not working:

plot Result = 10;
Result.setPaintingStrategy(if condition then paintingStrategy.ARROW_UP else paintingstrategy.ARROW_DOWN);

Thank you.
 
Last edited:
T

tomsk

Well-known member
VIP
@Vision The SetPaintingStrategy construct only expects a single piece of constant, you're not going to be able to run that conditional test as stated.
Why not you share with us what you're really trying to achieve, chances are you can achieve the same result but using a different path.
makes sense?
 

Similar threads

Top