Menu

Set

Brynner

{{obsolete |type=Script Command |when=r15982}}

Syntax

  • [Set] <variable>,<expression>;
  • Set
  • <variable> = <expression>;

Description

This command will set a variable to the value that the expression results in.

This is the most basic script command and is used a lot whenever you try to do
anything more advanced than just printing text into a message box.

Returns the variable reference (since trunk {{rev|12870}}).

Examples

[Set] .@x,100;  // will make .@x equal 100.

[Set] .@x,1+5/8+9;  // will compute 1+5/8+9 (which is, surprisingly, 10 - remember, all numbers are integer in this language) and make .@x equal it.

or

.@x = 100;  // will make .@x equal 100.

.@x = 1+5/8+9;  // will compute 1+5/8+9 (which is, surprisingly, 10 - remember, all numbers are integer in this language) and make .@x equal it.

For more information read: r15982: Script Engine
Update

[Category:Script Command]


Related

Wiki: Escape sql
Wiki: Set
Wiki: Setd
Wiki: Timers (Scripting)
Wiki: Variables

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.