This topic is locked
[SOLVED]

 if / then statement in 'after record added' even

4/20/2011 5:04:07 PM
PHPRunner General questions
S
santonivich author

Hello everyone.
I'm struggling with something that should be pretty easy.....but I havent been able to make it happen. I would like to create a statement in the 'AFTER RECORD ADDED' event that is based on the value of the for.
For example:
If $values["FieldName"] = "something"
then do this
If $values["FieldName"] = "something different"
then do this
I've tried many different ways....but cant seem to get it to work. How should this be coded?
Thanks for the help.

J
John 4/20/2011

Try:
If ($values["FieldName"] == "something")

{

then do this;

}
else

{

then do this;

}