You can
put this solution on YOUR website!&& is a Boolean AND
|| is a Boolean OR
meaning the "calculation" is either TRUE (=1) or FALSE(=0).
! is NOT
eg IF time is equal to (hours<24) and (minutes<60)
THEN ...
this is to test a time is of the correct 24 hour format.
in C++ we would do something like:
(hours<24) && (minutes<60)
so a time of 12:71 would have hours as TRUE --> 1 but minutes is FALSE --> 0 and hence a would be FALSE since (1 AND 0) is 0
Similarly, || is the OR equivalent to AND's &&
NOT:
a!=12.5 means a is not equal to 12.5
Jon.