From WikiChip
mirc/identifiers/$?
< mirc‎ | identifiers
Revision as of 01:23, 23 December 2013 by Zmodem (talk | contribs) ($? in a nutshell)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: This feature has essentially been replaced by the $input() identifier.


The $? identifier is used to request immediate user-input.

Synopsis

$?="[Input Request Message]"
Displays an input box to get user-input. The "Input Request Message" is optional; if not specified, it is replaced by "Enter reply:"

Properties

There are three ways you can modify the intent of the requested data:

  • $?="Give Me Input"
Displays an input request with the words 'Give Me Input' above the input box.
  • $?*="Give Me Password"
Displays a password input request, in that the information the user inputs will be treated as a password field, therefore the characters will be replaced with password characters. The information is still displayed normally once the input is received.
  • $?!="Give Me Input"
Displays an input request with a Yes & No button, with the words 'Give Me Input' above them.
- If you click Yes, the input returns $true, otherwise it returns $false, even if you don't click No and exit out other ways.