-
WikiChip
WikiChip
-
Architectures
Popular x86
-
Intel
- Client
- Server
- Big Cores
- Small Cores
-
AMD
Popular ARM
-
ARM
- Server
- Big
- Little
-
Cavium
-
Samsung
-
-
Chips
Popular Families
-
Ampere
-
Apple
-
Cavium
-
HiSilicon
-
MediaTek
-
NXP
-
Qualcomm
-
Renesas
-
Samsung
-
From WikiChip
Difference between revisions of "mirc/identifiers/$v1"
< mirc | identifiers
m (slight clarification) |
m |
||
Line 23: | Line 23: | ||
==Compatibility== | ==Compatibility== | ||
Added: v6.16 | Added: v6.16 | ||
+ | |||
Added on: 07/07/2004 | Added on: 07/07/2004 | ||
Revision as of 00:22, 29 June 2014
The $v1 identifier returns the value of the lefthand operand of the most recently checked conditonal statement within a script. This identifier is equivalent to the $ifmatch identifier.
Contents
Synopsis
$v1
Examples
List the names of any hash tables currently in use upon calling an alias /hlist:
alias hlist { if (!$hget(0)) { echo -qgaec i * No hash tables in use } else { var %i 1 while ($hget(%i) != $null) { echo -ga $v1 } } echo -qgaec i End of /hlist. }
Check if two random numbers between 1 and 5 are equivalent, and echo the matching numbers if so:
//echo -ga $iif($rand(1,5) == $rand(1,5),Yes! $v1 == $v2,No! $v1 != $v2) $+ !
Compatibility
Added: v6.16
Added on: 07/07/2004