Replace __HIGH() and __LOW() with max() and min_not_zero().
Attach a file by drag & drop or click to upload