इस तरह के सशर्त मूल्यांकन के लिए, PHP का उपयोग करें अगर (), और अगर () और अन्य।
उदाहरण
PHP कोड इस प्रकार है
<!DOCTYPE html> <html> <body> <?php $gameMode="BUY"; if($gameMode=="TRY") echo "GAME IS IN ",$gameMode," MODE","<br>"; else if($gameMode=="BUY") echo "GAME IS IN ",$gameMode," MODE","<br>"; else echo "GAME IS NEITHER TRY NOR BUY MODE","<br>"; ?> </body> </html>
आउटपुट
GAME IS IN BUY MODE