Jump to content

Simple If statement wont work (MS Excel)


Help!php

Recommended Posts

It won't work because that's not valid PHP.  You need to do:

 

if ($F29 >= 400) {
   echo "A";
} elseif ($F29 >= 200) {
   echo "B";
} elseif ($F29 >= 100) {
   echo "C";
} else {
   echo "Fail";
}

 

For more info on conditionals in PHP, look at: http://php.net/manual/en/control-structures.if.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.