I need to know what syntax the expression editor uses.
I keep getting stuck when I have to do compound expressions
I don't know what language I need to reference to make the
expressions work.
Any help on this would be greatly appreciated.
Thanks.
Printable View
I need to know what syntax the expression editor uses.
I keep getting stuck when I have to do compound expressions
I don't know what language I need to reference to make the
expressions work.
Any help on this would be greatly appreciated.
Thanks.
It uses normal systax. The easiest way to get data from an object is to click on the button and choose in the menu. Be careful to counter the number of parenthesis open and closed : they have to match.
Thanks for responding.
I don't know what language the "normal" syntax is in.
When I use the object reference part of the expression editor
I get the feeling it's similar to php - but I can't tell.
It's a little like php, but you don't put variables inside strings (only php does this)
A little guide:
0 - Number
"string" - String
Abc() - function that returns a number
Abc$() - function that returns a string
Val("string") - convert a string to a number e.g. "0" becomes 0
Str$(0) - convert a number to a string (e.g. 0 becomes "0")
X("Object Name") - Retrieve a value from an object, in this case the X position.
"hello" + " world" - join strings
"hello " + edittext$("Edit Box") - join string to the text from an edit box
Anything else?