This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
conditional_expression [2020/02/14 12:40] – justin | conditional_expression [2020/02/14 12:55] – justin | ||
---|---|---|---|
Line 15: | Line 15: | ||
====Examples: | ====Examples: | ||
+ | <code bauxite> | ||
+ | global.property[" | ||
+ | </ | ||
+ | Evaluates to true if the global property " | ||
<code bauxite> | <code bauxite> | ||
self.property[" | self.property[" | ||
Line 20: | Line 24: | ||
Evalutes to true if the self [[entity|entity' | Evalutes to true if the self [[entity|entity' | ||
<code bauxite> | <code bauxite> | ||
- | global.property[" | + | global.property[" |
</ | </ | ||
- | Evaluates to true if the global property " | + | Evaluates to true if the global property " |
<code bauxite> | <code bauxite> | ||
- | player.inventory contains "ITEM_0001" and player.inventory contains[3] "ITEM_0005" | + | player.inventory contains[3] "ITEM_0005" and player.stat["level"] >= 10 |
</ | </ | ||
- | Evaluates to true if the player has at least one of " | + | Evaluates to true if the player has at least 3 of " |
<code bauxite> | <code bauxite> | ||
initiator.tags contains " | initiator.tags contains " |