: I was looking at some borrowed code today and saw a few lines that looked similar to this:
:
:
this.a_config = o_parent.a_config[n_order + (this.n_depth ? 2 : 0)];
:
: But I have never heard of the ? operator. Could someone please try to explain why that '?' is floating around in there?
:
It's a short form of "if (a) b else c", but written "a ? b : c". For example:-
a = 2 > 1 ? 1 : 0; /* a is 1 (as condition is true) */
a = 1 > 2 ? 1 : 0; /* a is 0 (as condition is false) */
Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");