From WikiChip
Difference between revisions of "mirc/identifiers/$!"
< mirc‎ | identifiers

(Undo revision 11340 by PatrolBot (talk))
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The '''$!''' identifier returns the input value that the script was just given via user input. This operation can also save you on writing in a variable, which isn't always an option but it is good to know when it can be useful.
+
{{mirc title|$! Identifier}}The '''$!''' identifier returns the input value that the script was just given via user input ($input, $? etc). This identifier may avoid using a variable.
  
 
==Example==
 
==Example==
Line 11: Line 11:
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|$! identifier - mIRC]]

Latest revision as of 13:34, 20 September 2017

The $! identifier returns the input value that the script was just given via user input ($input, $? etc). This identifier may avoid using a variable.

Example[edit]

alias testme {
  $?="Type something"
  echo -a $!
}
After you execute the alias, via /testme, you will be prompted by an input box. Whatever input you put in that box, upon clicking OK, will be immediately echoed to your active window.
[Expand]
v · d · e mIRC identifier list