Ternary ifelse ( ?: ) in different languages
AWK$ awk 'ORS=NR%3?",":"\n"' student-marksPerl /PHP$result = ($a __ $b) ? $x : $y;In Per6, use double ? and ! instead.$result = ($a __ $b) ?? $x !! $y;Rifelse(a__0,a,0)Ternary operator (if?true:false)bash/linuxternary operator ? : is ju... [Read more...]