Skip to main content

Posts

Showing posts from September, 2022

if condition with example in php

 what is if condition in php? write a if condition example in php? if condition in php php  me if statement  ka use aap kisi bhi   condition ko check karne ke liye kar sakte h.  iske   liye  aap pahle  variable  ko declare karte hai. eske baad me aap   if  condition me aap pahle condition ko dete h . baad me statement. agar aapki condition true hoti hai to if block me diya gaya statement exicute ho jayega otherwise condition false hone per controller bahar ho jayega.php me program write kare ke liye php scripting opening tag and closing tag ka use karte hai. opening and closing  tag ke middile me apne program ko write karte hai.     Syntax:  if(condition){ statement; } Example:    <?php $a =10;  if ($a > 5) { echo "condition is true"; } ?> output: condition is true                  

if else condition with example in javascript

 what is if else condition and example?      or if else with example .  if else condition in Javascript  Javascript me if else condition me agar if block me di gayi condition true hoti h to if block ka statement exicute hoga otherwise  condition false hoti hai to else block ka statement exicute hoga. syntax:                    if(condition) {                    statement ;                    } Example 1:                    //if else condition in javascript                         let a = 5;                         if(a<10) {                  ...

what is if condition in javascript

what is if statement  in  java script If statement  :                        java script me if statement  ka use aap kisi bhi   condition ko check karne ke liye kar sakte h.  iske   liye  aap pahle  variable  ko declare kare eske baad me aap   if condition me aap pahle condition ko dete h eske baad me statement. agar aapki condition true hoti hai to if block me diya gaya statement exicute ho jayega otherwise condition false hone per controller bahar ho jayega. Syntax: If(condition) { Statement; } Example: Var a=10; If (a<20) { Console.log(a); }