Forum Discussion

Mohan6268's avatar
Mohan6268
New Member
2 years ago

CompareProperty

Can we use AND(&&) operator in CompareProperty checkpoints ex: aqObject.CompareProperty(style.getPropertyValue("background-color") &&  "    ", cmpIn, colorCode,true, lmError);

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3
    1) AND is a logical operator that is used between boolean values. That's not what it looks like you are trying to do here, so no.
    2) If you are trying to add a space on to the background color value before you compare it to color code, then you can set a variable to: property value + " "
    Then you can compare the variable to the color code using an If Then block.