[[{{x,something-less-than-A}>A}*(T-F) + F]] I'm not looking to solve any specific problem here, I have to understand how this works before I can fully utilize it. This code doesn't make sense to me and I've spent hours looking over the wiki pages and looking up forum posts to only find specific use questions rather than a generalized understanding of how this works in particular. Refer to the Wiki page - Conditional Statements (Math Only) I understand the following : x is the value we are comparing to A Something-less-than-A is simply less than... A . A is the value we are comparing to X T is the value we want the statement to output as a value if the statement is true. F is the value we want the statement to output as a value if the statement is false. The curly brackets are being used to group rolls . As a result of grouping rolls, I assume that Something-less-than-A is a placeholder more than anything and isn't actually used in the comparison. It just has to be written out in order for the comparison to work. Removing the comma and Something-less-than-A results in the following error TypeError: Cannot read property 'results' of undefined . Greater than sign ( > ) is behaving as a roll modifier to compare the info in the roll. However, unexpected behavior occurs when attempting to flip the sign to Less than (<). Example to follow below. Let's say I'm running a 4th edition game and I want to use this to determine weapon damage based on if the character is epic tier or not (Character >= Level 21). Before doing anything with weapon dice, I've made this bit of code... [[{{@{Character-Name|Level},0}>21}*(2-1) + 1 [Epic Tier] ]] Problem: This code will output a value of 1 for any the character's level of 20 or lower. If the character's level is 21 or higher, I will get a value of 2. If I simply reverse the > sign to <, I now get 3 in either case. This makes no sense to me. I also don't really understand the purpose of Something-less-than-A , though as mentioned above I have my assumptions. Is there something I'm missing here? Is this a glitch/bug? Any help is appreciated. Part of the initial interest was being able to do this for more complicated changes during level up so macros update on their own. For example, the Cleric's Healing Word changes at level 6, level 11, level 16, level 21, and level 26. I'm sure I could use this for a variety of things but until I understand how this works better, I don't think I'll be able to determine how to best put it to use. For a power or ability which increases every tier, this code works which is far simpler. [[ [[(ceil(@{Level}/10))]]d@{weapon-1-dice} [Weapon 1 High Crit - Extra W per tier] ]]
I already sent an email out requesting the roll20 team to update the Wiki for Computed dice rolls to make it clear you need to use an additional set of square brackets to make that macro work ( Source info ).