You are not logged in.

Scott Witte

Intermediate

  • "Scott Witte" started this thread

Posts: 339

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

1

Monday, March 30th 2020, 7:17pm

ifnot( vs if(!

Howdy Klaus,

I notice that ifnot is no longer documented although it still functions. Using if(! instead is more in line with standard programming languages (javascript) but is there any reason we should convert our existing code to more standard syntax? Will ifnot be deprecated?

Mostly just curious...

2

Tuesday, March 31st 2020, 4:41pm

+1

3

Tuesday, March 31st 2020, 5:15pm

Hi,

the 'ifnot' action is from a time when there were no operators supported.

It has been removed the documentation, but it still keeps working and be supported.

The effort for supporting it minimal, internally the ifnot action is simply mapped to the if action with the true/false actions swapped:

Source code

1
ifnot(condition,trueaction,falseaction) => if(condition,falseaction,trueaction)

That means no reason or need to change or convert anything.

Best regards,
Klaus