Project

General

Profile

Feature #3265

"isdigit' if operator (digital numbers checkup)

Added by westor (GR) about 2 months ago. Updated about 2 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
02/04/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hello,

It would be nice to add the isdigit operator while someone wanna check the specific parameters for digital numbers and not only just for numbers.

Example Code:

alias test {
  if ($1 !isdigit) { echo 4 -a Error: Please specify only digital numbers! | return }
  echo -a Text: $1-
}

- Thanks!

History

#1 Updated by Per Amundsen about 2 months ago

What is wrong with if (X isnum 0-9) ?

#2 Updated by Per Amundsen about 2 months ago

  • Status changed from New to Rejected

Also available in: Atom PDF