Project

General

Profile

Actions

Feature #3265

closed

"isdigit' if operator (digital numbers checkup)

Added by westor (GR) almost 8 years ago. Updated almost 8 years 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!

Actions #1

Updated by Per Amundsen almost 8 years ago

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

Actions #2

Updated by Per Amundsen almost 8 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF