Page 91 - Computer Genius Class 07
P. 91
Since coding involves logical instructions and pinpoint accuracy, it can be an excellent tool for
solving math problems. In fact, there are a few blocks in AI Connect that directly use mathematical
reasoning to find ans ers to their pro lems.
Logical Operators
ogical operators in programming are commands that ta e decisions or a code ased on specific
conditions defined y the user. They can e ery help ul or uilding comple programs that can ta e
decisions on their own. They follow a strict rule of logic that guides the program and instruct it what
to do and when to do.
Name Symbol Description
AND When both conditions are
true.
OR When one of two conditions
is true.
NOT It reverses the logic of the
code when the conditions
are ‘NOT’ true.
Relational Operators
Relational operators are blocks of commands that direct the code based on the relation between two
aria les or alues. the specified relation et een aria les stands true the code acts accordingly
and per orms the specified tas gi en y the user. ere s a list o relational operators that e can
use in AI Connect:
Name Symbol Description
EQUAL Condition is true when both
values are equal.
NOT EQUAL Condition is true if both the
values are NOT equal.
STRICTLY LESS The condition is true if the left
value is less than the right value.
SS T A O The condition is true if the left
EQUAL TO value is less than or equal to the
right value.
STRICTLY The condition is true if the left
AT T A value is greater than the right
value.
AT T A The condition is true if the left
OR EQUAL TO value is greater than or equal to
the right value.
Exploring Math with Coding 89

