Hello everyone! I'm trying to create a rollable table for a Wild Magic Table surge, that works like this: First, you roll a 1d20. If the roll is between 1-5, you roll a d100 on the bad-wild table. If the roll is between 6-15, you roll a d100 on the neutral-wild table. If the roll is between 16-20, you roll a d100 on the good-wild table. The macro I've come up with is the following: &{template:5e} {{title=Wild Magic Result}} {{subtitle=Rolling Wild Magic...}} {{roll1=[[@{selected|d20} &{tracker}]]}} {{roll1name=Wild Magic Roll}} {{result1=[[@{roll1} < 5 ? 1t[bad-wild] : (@{roll1} > 16 ? 1t[good-wild] : 1t[neutral-wild])]]}} {{result1name=Result}} The thing is, I keep having the TypeError: Cannot read properties of undefined (reading 'substring') Thanks in advance!