macros:control_structures
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
macros:control_structures [2017/11/24 10:33] – icke_siegen | macros:control_structures [2019/02/06 21:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 24: | Line 24: | ||
This simply negates a variable, effectively turning it into its reciprocal value: if the variable ' | This simply negates a variable, effectively turning it into its reciprocal value: if the variable ' | ||
+ | There are also some other syntax versions: | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | { | ||
+ | if(Math.IsNotEqual(Playbacks.Editor.Times.ChaseSpeed, | ||
+ | ** Do Something ** | ||
+ | } else { | ||
+ | ActionScript.SetProperty.Float(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | and as of version 10, it is possible to write conditions in a more modern way: | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | { | ||
+ | if(Playbacks.Editor.Times.ChaseSpeed == 0.0) { | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | **It appears that the else hive must not be empty. If it is empty then Titan doesn' | ||
+ | |||
+ | If you only need the if hive, then omit the else altogether. | ||
+ | |||
+ | Also see an example here: [[macros: | ||
~~NOCACHE~~ | ~~NOCACHE~~ |
macros/control_structures.1511519582.txt.gz · Last modified: 2017/11/24 10:33 by icke_siegen