assign
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | assign [2007/10/13 17:06] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | assign \\ | ||
+ | assign //< | ||
+ | assign -//< | ||
+ | assign //< | ||
+ | |||
+ | ======Description: | ||
+ | __ASSIGN__ is the general-purpose interface for creating and manipulating | ||
+ | variables. | ||
+ | string or a number. | ||
+ | is a string. | ||
+ | where a number is expected, it will be automatically converted for you. | ||
+ | |||
+ | The rules for variable names are similar to those of the C language; | ||
+ | they may consist of any letter, digit, or the underscore (_) character, | ||
+ | and they must begin with a letter. | ||
+ | case-sensitive (nor are their contents, though they are case-preserving). | ||
+ | |||
+ | __ASSIGN__ is primarily used for string assignments. | ||
+ | mathematical purposes as well, using the ${} construct, but it can very | ||
+ | quickly become awkward and cumbersome. | ||
+ | better suited to the @ modifier (see [[Expressions]]). | ||
+ | |||
+ | ======Examples: | ||
+ | To assign a text string to the variable $foo: | ||
+ | assign foo this is some text string | ||
+ | |||
+ | To compute the sum of two integers: | ||
+ | assign foo ${4 + 5} | ||
+ | |||
+ | To delete a variable: | ||
+ | assign -foo | ||
+ | |||
+ | ======See Also:====== | ||
+ | [[Expressions]]; | ||
+ | |||
+ | ======History====== | ||
+ | The [[assign]] command first appeared in ircII. | ||
+ | |||
+ | #$EPIC: assign.txt, | ||
assign.txt · Last modified: 2007/10/13 17:06 by 127.0.0.1