CS0019
The following CS0019 error code information is provided within the context of NinjaScript. The examples provided are only a subset of potential problems that this error code may reflect. In any case, the examples below provide a reference of coding flaw possibilities.
Error Code Explanation
Strings cannot be compared with relational operators (<, >, <=, >=, ==, !=) to other object types. Strings can only be compared to other strings and only through the use of equality operators (==, !=).
Error Description #1
Operator ’==’ cannot be applied to operands of type ‘string’ and ‘int’
Error Description #2
Operator ‘<’ cannot be applied to operands of type ‘string’ and ‘double’
Error Description #3
Operator ‘>’ cannot be applied to operands of type ‘string’ and ‘string’
Additional Error Descriptions
- Operator ‘<’ cannot be applied to operands of type ‘string’ and ‘string’
- Operator ‘<=’ cannot be applied to operands of type ‘string’ and ‘string’
- Operator ‘>=’ cannot be applied to operands of type ‘string’ and ‘string’

