AQA Computer Science A Level
Selection - If Statement
By Admin - Oct. 13, 2021, 2:28 p.m.
Last Edit - Oct. 8, 2024, 1:42 p.m.
- format of an
if
statement
- format of an
if .. else
statement
- format for using
else
and then if
- conditions should always be in
( )
brackets
- code to run is in
{ }
brackets
- operators for conditions
- logical operators for joining conditions
&&
means AND ||
means OR