Project

General

Profile

Actions

$isid » History » Revision 1

Revision 1/2 | Next »
Per Amundsen, 08/10/2015 06:59 AM


Added in 1.9.0

$isid

Returns $true if an alias was called as an identifier, otherwise $false.

Example

; Create an alias
alias test [
  if ($isid) {
    echo -ag Was called as a identifier.
  }
  else {
    echo -ag Was not called as a identifier.
  }
}

; Call test as a alias.
/test

; call test as a identifier.
//noop $test

Updated by Per Amundsen over 8 years ago · 1 revisions

Also available in: PDF HTML TXT