0

I want to ask if there is a way to tell your programme to proceed with the code only when a boolean expression is false (not "true" as usual) and if the answer is yes, could you give me an example of such a code.

1
1

Yes there is, a couple ways actually. These all work the same way:

if ( !boolean )
    do...
if ( boolean == false )
    do...

if ( boolean )
    not here..
else 
    do...

I hope this helps.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .