hoffmann
- 65
- 0
What is wrong with this statement in an 'if' block?
if ((scalar1 == 0) || (scalar2 == 0) || (scalar3) == 0 || (scalar4 == 0))
I basically want to say: if any of the four scalars are individually equal to zero, then execute the subsequent statements.
I receive the following error in the command line:
Operands to the || and && operators must be convertible to logical scalar values.
Any suggestions?
if ((scalar1 == 0) || (scalar2 == 0) || (scalar3) == 0 || (scalar4 == 0))
I basically want to say: if any of the four scalars are individually equal to zero, then execute the subsequent statements.
I receive the following error in the command line:
Operands to the || and && operators must be convertible to logical scalar values.
Any suggestions?