fz21z — 2013-01-14T07:02:07-05:00 — #1
How to convert a normal record, the statement:
And what is this character: "^"?
zmienna=zmienna; // I know...meaningless?
But it probably is wrong.
parkint — 2013-01-14T07:28:26-05:00 — #2
What is the context of your question?
From whence does this data come? If it was a form (input from the user) there is no way to be sure of the significance of that expression.
More importantly, don't forget that "^" (commonly called the [Caret) is simply another [URL="http://en.wikipedia.org/wiki/ASCII"]ASCII character. Again, the meaning of it is purely subjective. We tend to assume it represents an [URL="http://cboard.cprogramming.com/cplusplus-programming/8789-exponential-operator.html"]exponential operator](http://en.wikipedia.org/wiki/Caret). But that may not be true.
olephart — 2013-01-15T04:52:05-05:00 — #3
The code you present is a ternary operator which you correctly changed to a if/else
the "^" in this case is a "bitwise XOR" (A bit of home work for you).
So depending on what the "X" value is in relation to "50" the result will a true of false
drop this into a web page and play..
bw = '';
bw = 3^4?'yes':'no';
try 3^3 as well