ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:ternary

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
new:ternary [2018/02/18 18:28] – created korshunnew:ternary [2018/02/18 18:28] korshun
Line 1: Line 1:
 ====== Ternary operator in ACS ====== ====== Ternary operator in ACS ======
  
-[[ACC]] doesn't support the ternary operator '?:', but [[BCC]] and [[GDCC]] do. +[[ACC]] doesn't support the ternary operator '?:', but [[BCC]] and [[GDCC]] do. To emulate it in ACC, ACSUtils implements the following trivial function:
- +
-To emulate it in ACC, ACSUtils implements the following trivial function:+
  
 ''any cond(bool condition, any whentrue, any whenfalse)'' ''any cond(bool condition, any whentrue, any whenfalse)''
new/ternary.txt · Last modified: 2018/02/18 18:31 by korshun