Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ternary operation is always evaulating to false

Status
Not open for further replies.

Chucklez

Programmer
Jul 25, 2002
104
US
I dont understand it, so hopefully someone here can point out what my stupid mistake is.

Code:
$DATE_SL=(trim($SCRIE_SL)!='?????') ? $SCRIE_SL : "?????";

Now, SCRIE_SL has a value of 456, but it keeps returning a value of "?????", which is the false part of the statement.

I have been trying to figure out this simple problem for several hours now, and I give up. Can someone shed some light on this?
 
Ops priorities issue:
Code:
x = (...?...:...);
You have (x=...)?...:...;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top