Conditional Statements
Use conditions to run different code paths based on logical tests.
if ($score >= 90) echo "A";Try it Yourself
Run this PHP example in your local environment or course sandbox.
PHP Tutorial
Use conditions to run different code paths based on logical tests.
if ($score >= 90) echo "A";