18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

AND operator

keatskeats Members
edited November -1 in Sahi - Open Source
how do you use and operator in sahi.
For me && is not working.

This is what i used.
if($i >= 6 && $i<=9)

Comments

  • Hi,

    Try using if(_condition($i >= 6 && $i<=9))

    Regards,
    pankaj
  • narayannarayan Administrators
    Hi Keats,

    && works. Could you post an example script where it fails?

    Regards,
    Narayan
  • keatskeats Members
    Oh well, yes && works. The problem was in the range i have given which was not going inside the if.
This discussion has been closed.