In the newest Collect v 3.22.1 there are now new custom Environment functions:
-
env:desktop() : returns true if Collect runs on a desktop computer, false otherwise (e.g. in Android)
-
env:mobile() : opposite of env:desktop()
and Mathematical functions:
- asin/acos/atan : arc sine, arc cosine and arc tangent of a specified angle
An example: showing slope correction for 15m plot radius when slope more than 5 degrees (or less than -5):
format-number(15 div math:sqrt(math:cos(math:abs(slope))),"0.00")
and Apply when rule:
env:mobile() and math:abs(slope)>5
This may need some further development, but the basic idea is here.
regards, Lauri