sure, you can use all python functions, if you take care that necessary modules are installed and configured correctly.
E.g. we use SciPy for some statistics.
You can create complex user-defined functions per code in your
For simple conditions you can use functional syntax kind of
value = this if condition else that
Significant digits are on my wishlist too, my workaround is about applying
Calculate Precision from Uncertainties, which works quite well with results <1.
e.g. if you define a uncertainty of 1 %, the result is rounded to the digit, which represents 1 % of the original value, so you get 3 significant figures.
With 10 % you get 2 digits, etc.