If variable contains only number, how to?

  • Автор темы Автор темы AdamMirow
  • Дата начала Дата начала

AdamMirow

Новичок
Регистрация
04.02.2019
Сообщения
6
Реакции
0
Баллы
1
Hello Guys,

I would like to check if a variable is a number. if the variable cointains more then a number like letters or , it should fail. can anybody help please?
 
This is the task for you logic. Do you know regex that can get numbers from text?
 
Execute a text processing Regex into variable who you want to check if is numeric, add this regex to a new variable: {-Variable.regexTest-}
Код:
Развернуть Свернуть Копировать
[A-Za-z]|\W

After execute regex, add a block with test:
Код:
Развернуть Свернуть Копировать
"{-Variable.regexTest-}" == ""

Note: If number contain any type of symbol like decimal separator, the result will be a not numeric.
 

Вложения

  • Sem título.jpg
    Sem título.jpg
    66,3 KB · Просмотры: 403
Последнее редактирование:
  • Спасибо
Реакции: AdamMirow и VladZen
Thank you very much guys, it works. Perfect!
 

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