Decision based on varying UI element

That’s the thing. I have too many events to check: 0.01, 0.03, 0, …

As shown in the screenshot above, two main UI Element are recurrent:

  • Open: ca. 0.0xkg
    So we need to check x if it is <1 or 0 at all times.

  • Open: 0kg(xkg)
    Here, we need to check the 0kg only as x can be -6.7 as shown in screenshot.

  1. When it is, for example: Open: ca. 0.01kg, I want to extract only the “0.01” and check if it is less than 1.

  2. When it is, for emaple: Open: 0kg(0.01)kg, I want to extract only the first part “0kg” and check if it is 0.

Can we do that?