Lagaffe
Resource contributor
- Messages
- 986
- Country

Hi,
Trying to add new functions on my addons, I read a lot of XML scripts of others developpers to learn others things.
Yesterday, I read this kind of code that an author use often in it scripts :
I rather expected a code of this type with an explicit test like : == or >
The only explanation is that we simply test that the variable is well equal to 1, the 1 first on the line is only there to remember this fact
My question: Is it this syntax correct ? Something is missing ? Is it a mistake ?
If not that is the signification of the first code (in bold and blue)
Trying to add new functions on my addons, I read a lot of XML scripts of others developpers to learn others things.
Yesterday, I read this kind of code that an author use often in it scripts :
1 (L:VARIABLE_A) if{ "do something" } els{ "do other" }
I rather expected a code of this type with an explicit test like : == or >
As I did not see the meaning of this code, I have read several time the "bible" without finding any answer.1 (L:VARIABLE_B) == if{ "action to do" } els{ "other action"}
The only explanation is that we simply test that the variable is well equal to 1, the 1 first on the line is only there to remember this fact
My question: Is it this syntax correct ? Something is missing ? Is it a mistake ?
If not that is the signification of the first code (in bold and blue)
Last edited:



