You can add an expression to an attribute. Atoms uses C++ as an expression language.
Note |
---|
Only the Windows platform support attribute expressions! |
On a expression, you have three variable as input that you can use to access various data:
...
Code Block | ||
---|---|---|
| ||
if (agent.getIntMetadata("myMeta") == 1 && agentGroup.time() > 20) { output = 1; } else { output = defaultValue; } |
Packaging
When you use expressions and you want to package your project you need to add the AtomsJIT folder to folder copy list inside the project settings.
...