From WikiChip
Difference between revisions of "mirc/identifiers/$&"
m |
|||
Line 1: | Line 1: | ||
− | {{mirc title|$& Identifier}}'''$&''' allows you to break up long, single script lines in order to make editing and reading them much easier. | + | {{mirc title|$& Identifier}}'''$&''' is a construct which allows you to break up long, single script lines in order to make editing and reading them much easier. |
+ | '''Note''': $& can touch the end of your line and still be valid, see the example | ||
== Synopsis == | == Synopsis == | ||
Line 11: | Line 12: | ||
'''An alias that breaks up a long echo into multiple lines''' | '''An alias that breaks up a long echo into multiple lines''' | ||
<source lang="mIRC">alias testit { | <source lang="mIRC">alias testit { | ||
− | echo -a This is a really long $& | + | echo -a This is a really long$& |
line that is broken up because $& | line that is broken up because $& | ||
mIRC supports it! The cool thing is $& | mIRC supports it! The cool thing is $& |
Revision as of 11:50, 25 May 2019
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$& is a construct which allows you to break up long, single script lines in order to make editing and reading them much easier.
Note: $& can touch the end of your line and still be valid, see the example
Synopsis
$&
Parameters
None
Examples
An alias that breaks up a long echo into multiple lines
alias testit { echo -a This is a really long$& line that is broken up because $& mIRC supports it! The cool thing is $& that mIRC will also format these $& indentations within the script editor! }
Create an alias that has a code block similar to a programming language
alias testit { if ($me isin $+(Hello, $me,! How are you?)) $& { echo -a This code block resembles some popular programming languages. } }
Compatibility
Added: mIRC v5.5
Added on: 08 Jan 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also
mIRC identifier list