Sie sind nicht angemeldet.

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

1

Montag, 30. März 2020, 19:17

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...

3

Dienstag, 31. März 2020, 17:15

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:

Quellcode

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

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

Best regards,
Klaus