Error with > OR < statement

Copper Contributor

I'm fairly new to Power Apps and am having trouble creating a statement for the following scenario:

If "weekly hours" <=5 or >=10, then need to have prompt which would mandate  employee input comments stating reason for falling out of parameters.  

 

Any suggestions would be greatly appreciated.  Thank you

1 Reply

@KAC0413 

 

Try any one of the below formulas:

 

If("weekly hours" <= 5 Or "weekly hours" >= 10, true, false)
//OR
If("weekly hours" <= 5 || "weekly hours" >= 10, true, false)
//OR
If(Or("weekly hours" <= 5, "weekly hours" >= 10), true, false)

 

 

ReferenceAnd, Or, and Not functions in Power Apps 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.