Option :: operator!= - Check option value
The operator compares the option value with the number or string passed as right operand. The operator returns false , when values are equal and true otherwise.
The value is true when the function was executed successfully. Otherwise the value is set to false .
Implementation overview
- Compare with integer
Option :: operator!= ( iValue ) - Compare with string value
Option :: operator!= ( sValue )
Implementation details
-
Compare with integer
bool Option  :: operator!= ( int32 iValue )
The function compares the option value with the integer passed in iValue .
Notes:Conversion from option value to integer uses standard conversion, which will stop at the first non-numeric caracter in the option value. Thus, an option value 1/5 would result in 1.
- iValue
- Integer value
The value is passed as platform independent 32-bit integer value.
to list
- iValue
- Integer value
-
Compare with string value
bool Option  :: operator!= ( odaba::String &sValue )
The function compares the option value with the string value passed in sValue . Values are is compared case sensitive. In order to perform case insensitive comparison, equals() might be called.
- sValue - String value
to list