JavaScript
let mark=75;
if(mark>=35){console.log("Pass");}Decision making: if mark pass concept
An if condition helps the program decide whether to run a block of code based on a condition.
If the student gets 35 or more, teacher says pass.
If block runs only when condition is true.
let mark=75;
if(mark>=35){console.log("Pass");}int mark=75;
if(mark>=35){cout<<"Pass";}mark=75
if mark>=35:
print("Pass")<?php
$mark=75;
if($mark>=35){echo "Pass";}
?>If condition true → code runs.