I want to determine whether a given attribute is positive, negative, or zero, and respond appropriately just through dice representation, and without using a custom character sheet. I can't use the scripting API for a character sheet because I can't afford to be a mentor, so I have to do it all in roll math. Okay, so what I have is I'm running D&D 3.5 using Roll20's built-in 3.5 character sheet where as a variant I'm using Pathfinder's Combat Maneuver system. Everything is working fine, except that I've just discovered that Pathfinder's Combat Maneuver system says that creatures of Tiny Size or smaller use their Dexterity Modifier in place of their Strength modifier for their Combat Maneuver Bonus. What I have right now for determining the CMB bonus is... +[[ @{selected|bab} + @{selected|strmod} - @{selected|size} + @{selected|CMB-misc} ]] ...where @{selected|size} is subtracted because it's the size bonus to AC and that's the negative of the special size modifier for combat maneuvers, and where @{selected|CMB-misc} is a custom attribute that exists for every creature. Ideally, I'd have the ability to do simple boolean conditionals in a roll like... if(@{selected|size}>1){@{selected|dexmod}}else{@{selected|strmod}} ...but I haven't found a way to do that. I've thus figured that if I can somehow convert a value into Balanced Ternary (-1,0, or 1) based on whether it's negative, zero, or positive, I can then do... + ( @{selected|dexmod} * ( "math that returns 1 if size>1 and 0 otherwise" ) ) + ( @{selected|strmod}} * ( "math that returns 1 if size<2 and 0 otherwise" ) ) How can I accomplish my goal?