I'm trying to use the ?: operator in my game, but it causes an error on startup. The temp.exe file crashes causing the Windows error reporting service to trigger. This happens in XP and Vista.
Here the expression as I'm using it in the code.
PlayerDeck.Value('num_cards')<0 ? 52 : 0[/code:397z7hxl]
It's in an action that attempts to increment the value of PlayerDeck.Value('num_cards') by either 52 or 0
Am I using the expression correctly?