FIXED: string if() statements in expressions

Been missing this since day 1 and on almost every component I build. :laughing:

What would you be using it for?

Whenever I need to make a decision in a string parameter. For example, in a select op I want to select op “foo” if it exists and op “default” in it doesn’t.
if(opexists("/foo")==1,"/foo","/default")

Or build a fail save for groupnames if they don’t exist. See [url]http://www.derivativeinc.com/forum/viewtopic.php?f=17&t=54[/url]

or in a text DAT housing an expression for the evaluate DAT’s second input, in order to decide which string to put into the cell based on the if() statement

ifs() will be in the next build

Selina

oh yay!
would this new if statement work in lsystems expressions or are those limited by the specific lsystem type expressions?

The lsystem expressions only use internal lsystem syntax, and builtin functions in() pic() and chan()
However I think there is a way to evaluate touch expressions using chan() expression, though its been quite a while so I can’t guarantee it.

Rob.