Does RPGLE has a ternary operator? -


i did find old posts on forums question. old, wondering if changed.

i know that, maybe in 2004, rpg did not have ternary operator. having work bit in c# , java, did use them , them. wondering if rpgle included them, somehow.

in c#, ternary operation looks :

myvar = var1 > var2 ? var1 : var2; 

so if var1 greater var2, myvar var1. basic example.

so... guys know if there's ternary operator in rpgle , if there is, what's syntax?

no, rpgle not have ternary-operators.

http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzasd/expropt.htm


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -