This topic is locked
[SOLVED]

 comparison in custom field

7/29/2011 9:50:32 AM
PHPRunner General questions
T
txqr author

how do I make a comparison within a custom field:

Type: if value = 1 then value = 'freed'

ntão if value = 2 value = 'blocked'
[size="6"]?[/size]

C
cgphp 7/29/2011
if($value == 1)

{

$value = 'text 1';

}

else

{

$value = 'text 2';

}
T
txqr author 7/29/2011

Thanks!!!