Difference between revisions of "DollarPlus"
From Scriptwiki
(added as new.) |
m (fixed commenting syntax) |
||
Line 7: | Line 7: | ||
The identifier $+ is actually two different identifiers: one that is used just as $+ between items and another one that is used as $+(item1, item2, ..., itemN) | The identifier $+ is actually two different identifiers: one that is used just as $+ between items and another one that is used as $+(item1, item2, ..., itemN) | ||
− | here we have so $+ me text returns ''here we have some text'' | + | here we have so $+ me text ;returns ''here we have some text'' |
− | $+(here,we,have,some,te $+ xt) returns ''herewehavesometext'' | + | $+(here,we,have,some,te $+ xt) ;returns ''herewehavesometext'' |
When used that way, the identifier doesn't look too useful. But when we have a variable as an item, it's necessary to use either of these $+. | When used that way, the identifier doesn't look too useful. But when we have a variable as an item, it's necessary to use either of these $+. |
Revision as of 14:30, 10 November 2005
Note: the name of this page refers to identifier $+ but is as it is due to technical limitations
The identifier $+ is used to combine (catenate) items together when it's impossible just to write them together due to variables or identifiers.
$+ OR $+(...)
The identifier $+ is actually two different identifiers: one that is used just as $+ between items and another one that is used as $+(item1, item2, ..., itemN)
here we have so $+ me text ;returns here we have some text $+(here,we,have,some,te $+ xt) ;returns herewehavesometext
When used that way, the identifier doesn't look too useful. But when we have a variable as an item, it's necessary to use either of these $+.
var %number = 7 echo -a I am the %number $+ th boy in my family returns I am the 7th boy in my family