ACS doesn't support the ?: operator, unless I'm using it wrong:
Code: Select all
(laps == 1)?
HudmessageBold(s:"1 lap to win.";2,1,9,0.5,0.5,1.0):
HudmessageBold(d:laps,s:" laps to win.";2,1,9,0.5,0.5,1.0);
Moderator: GZDoom Developers
Code: Select all
(laps == 1)?
HudmessageBold(s:"1 lap to win.";2,1,9,0.5,0.5,1.0):
HudmessageBold(d:laps,s:" laps to win.";2,1,9,0.5,0.5,1.0);
randy wrote:Everything you can do with ?:, you can do with if/else. If the ACC parser was automatically generated from a formal grammar, I would have added ?: long ago since it would have been an easy addition.
But it's not, and this doesn't qualify as important enough for me to fit a trinary operator into its hand-coded parser.