…and it doesn’t work. It either returns a $PlayerSide$ draws 5 cards or $PlayerSide$ draws $Arythea deed_numPieces$ cards result depending on which way I put the > sign. Something is wrong with the If condition.
…but I have no idea what the difference is between the the version that works and the one that doesn’t. I would greatly appreciate any insight you might have.
There are 2 syntax errors in that expression that would cause you to get the Red cross instead of the Green arrow in the Expression field, indicating that it is broken. The correct expression is
The syntax errors were just me not copying and pasting properly and typing while drunk. Irresponsible of me when you are so kindly trying to help troubleshoot my problem! In any case I tested the expression you provided and with a deck size of 16, the combination of:
Ok, found the problem. The GetProperty() calls are returning numerical values as strings instead of numbers and this is causing the comparison to be a String comparison instead of a number comparison (so “10” is less than 5).
Have fixed this in SVN 8662, so look for a dev build of at least this level tomorrow and see if this fixes the problem.
Awesome. Presumably doesn’t matter for my module now as the 2 calc property system is up and working, but sounds like an important fix for future module development.
Ok, found the problem. The GetProperty() calls are returning numerical
values as strings instead of numbers and this is causing the comparison
to be a String comparison instead of a number comparison (so “10” is
less than 5).
Have fixed this in SVN 8662, so look for a dev build of at least this
level tomorrow and see if this fixes the problem.