if condition statement delimma
Posted: Fri Apr 25, 2003 9:59 am
Hello,
i am having a difficult time understanding an if statement that i am trying to understand
i have coded an iff statement -
if($action == ('register' ||'renew'||'transfer')){
do the thing
}elseif($action == 'hosting'){
do the damn thing
}
now on $action = register
it - 'do the thing'
but on $action = hosting
it - 'do the thing' when it should 'do the damn thing'
what is wrong with my syntax?
Kendall
i am having a difficult time understanding an if statement that i am trying to understand
i have coded an iff statement -
if($action == ('register' ||'renew'||'transfer')){
do the thing
}elseif($action == 'hosting'){
do the damn thing
}
now on $action = register
it - 'do the thing'
but on $action = hosting
it - 'do the thing' when it should 'do the damn thing'
what is wrong with my syntax?
Kendall