Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "RowIndex"

From Roll20 Wiki

Jump to: navigation, search
(Created page with "<noinclude>{{revdate}} {{main|Repeating Section}}{{NavMacroDocs}}</noinclude> Attributes in a Repeating Section can be referenced by their '''RowIndex'''. For a repeating...")
 
m
Line 6: Line 6:
  
 
* '''[https://app.roll20.net/forum/permalink/9102789/ Catering for 'missing attributes' when summing values]''' by Ziechael - shows how you can account for unknown number of stats in a repeating section, beyond just using <code>&{noerror}</code>
 
* '''[https://app.roll20.net/forum/permalink/9102789/ Catering for 'missing attributes' when summing values]''' by Ziechael - shows how you can account for unknown number of stats in a repeating section, beyond just using <code>&{noerror}</code>
<noinclude> [[Category:Macros]] </noinclude>
+
<noinclude>[[Category:Macros]]
 +
[[Category:Repeating Section]]</noinclude>

Revision as of 13:47, 23 February 2022

Main Page: Repeating Section

Attributes in a Repeating Section can be referenced by their RowIndex. For a repeating section named items, you could access the itembonus attribute for the second item on a character with the following syntax:

@{selected|repeating_items_$1_itembonus}

Note: The RowIndex of an attribute starts at 0 (index is the offset from the top), so the first row uses $0, the second uses $1, the third uses $2, etc.