Hi! Here is the code:
[
'name' => 'Price',
'id' => 'price',
'type' => 'number',
'min' => .01,
'step' => .01,
],
[
'name' => 'Currency',
'id' => 'currency',
'type' => 'text',
'pattern' => '[A-Z]{3}',
'visible' => ['price', '!=', 0],
// OR 'visible' => ['price', '!=', '0'],
// OR 'visible' => ['price', '!=', ''],
// OR 'visible' => ['price', '>', 0],
// OR 'visible' => ['price', 'match', '^(?=.*[1-9])\d*(?:\.\d*)?$'],
],
All of this conditions won't work when value with leading zero before point e.g. "0.1, 0.04...", but when changing to even ".1, .04 or (weird) 001" comparision starts working fine.