Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagecpp
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.

...