Major update: Expressions can be used anywhere

Read and comment on the latest community news and site updates.
Locked
User avatar
Unas
Admin / Site programmer
Posts: 8850
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Major update: Expressions can be used anywhere

Post by Unas »

Good news for those who like a bit of advanced scripting in their trials : expressions can now be used to replace any action parameter. To do that, just check the "Expression ?" box at the right of a parameter and fill the new field that appears with the expression you want.
Just make sure your expression returns a value that the action accepts for this parameter (remember that when hovering an action cell in the editor, you can see the raw content of each attribute : this is the kind of values your expression has to return for it to work properly).

Expressions still follow the syntax explained sooner in this topic, which enables calls to variables, usage of functions, etc.


And by the way, checking the "Expression ?" box replaces the 'xpr=' prefix you had to use on some actions before (Define a variable and Test a variable's value), so you shouldn't write it anymore. :)
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
Locked