Difference between revisions of "$(...)"

From Scriptwiki
Jump to: navigation, search
m (Added note about using $() to evaluate other identifers.)
m (rephrasing for clarity)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This identifier allows you to create a dynamic match parameter in an event.
+
== Categories ==
$(...)
+
* [[$(...) (events)|$(...)]] Using identifiers in event match text
 +
* [[$eval|$(...)]] Evaluating strings
  
You can use [[$1-]] to reference the incoming line.
+
{{Disambling}}
 
 
== Example ==
 
[[On_text|On *:TEXT]]:$(* [[DollarPlus|$+]] [[$me]] $+ *):#: {
 
  [[echo]] -a [[$nick]] just mentioned your nickname in [[$chan]] $+ .
 
}
 
This example will echo to your active window whenever someone mentioned your nickname.
 
 
 
== Note ==
 
You must use $(...) in the match text event for all other identifiers to be evaluated.
 
 
 
Correct:
 
on $*:text:$(hello $me):#: { ... }
 
''Incorrect:
 
on $*:text:hello $($me) *:#: { ... }''
 
 
 
== See also ==
 
* [[$eval]]
 
 
[[Category:Remote Identifiers]]
 
[[Category:Remote Identifiers]]

Latest revision as of 00:08, 11 July 2013

Categories

  • $(...) Using identifiers in event match text
  • $(...) Evaluating strings
Disambiguation
This is a disambiguation page — this means that one or more articles list this page and it holds reference to one or more articles or it has different meanings.