I have an if statement like this
decimal var1, var2;
if(var1 == 0.00 || var2 == 0.00)
{
...
}
Compiler shows error:
Operator '==' cannot be applied to operands of type
'decimal'
and'double'
I have also tried
If(var1 = 0.00 || var2 = 0.00){
//this
}
Compiler shows error:
Operator '||' cannot be applied to operands of type
'decimal'
and'double'
And the third thing i did was make 0.00
a string like "0.00"
In both the previous methods just to see if it would do anything different.