Weird conditional if behavior

kura2berlari

Пользователь
Регистрация
03.07.2012
Сообщения
42
Благодарностей
1
Баллы
8
Conditional if bigger/smaller than will have wrong result between variabel and number


please check on template on attachment

variable a is 15.021739130434783

variabel a > 30, this is wrong, but on zenno this will result true

Bug? or am I doing it wrong? Thanks
 

Вложения

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
526
Благодарностей
112
Баллы
43
Zenno not recognize decimal chars.
You need do a regex
Код:
.*(?=\.)
into your variable a to retreive only integer, the result you can set to the same variable "a" or into a new variable "b", then check if the result of regex is major than thirdy.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)