I donno whatever it is called but is there a way to do that thing in lua in php :
This case variable f would be => "true"
can i do same in php ? something like: ( i know this don't work , but how can i do it the right way)
Lua:
local n = 1
local f = ( n==1 and "true" or "false")
This case variable f would be => "true"
can i do same in php ? something like: ( i know this don't work , but how can i do it the right way)
PHP:
$n=1;
$f = ($n==1 AND "true" OR "false");