Welcome Guest, Not a member yet? Register   Sign In
how to use if condition in array variables?
#5

(04-26-2019, 07:09 AM)Wouter60 Wrote: The syntax
PHP Code:
'amt' => if($certid=1,8500 else 300 
is wrong in every aspect (only one bracket, a comma at the wrong place, a single equal sign, etc.). It would certainly fail to get one value or another, based on a condition.

Yeah. Well. There is that. Blush
Forgive me for trying to add an explanation to your terse (and entirely correct) reply. Angel
Reply


Messages In This Thread
RE: how to use if condition in array variables? - by dave friend - 04-26-2019, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB