Website automation

Hey i want to create a bot that cheaks an number

If the number is above like 10 i want it to click on something,
If the number is below 10 i want it to click on another thing

Idk if command like that exist on ui vision. If it does please help me ,thank you .

To be exact i want to create

Label |begin |

If xpath =10-
Go tolabel |begin| If not then continue

If xpath = 10+
Click |xpath|

Go tolabel |begin|