Choose where you’d like to start

Set Variable

Overview

The set variable deluge task can be used to create a local variable containing a given value.

See this page to learn how to assign values to fields in Zoho Creator using this task.

Return

This task returns the stored value. 

Syntax

<variable> = <expression>;
ParameterDescription
<variable>
Variable which will hold the given value.
<expression>
Value to be assigned to the variable.

Things to keep in mind

  • Assigning a new value to a variable declared earlier will overwrite the existing value.
  • Variables need not be declared initially before assigning values to them.

In Zoho Creator, this task can be used in the following events

When a record is Created
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Created or Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Deleted
On ValidateYes
On SuccessYes
Other workflow events
On a scheduled dateYes
During approval processYes
During payment processYes
In a Custom FunctionYes
In an Action item in reportYes

Example

The following script assigns the value 0 to variable - temp:

temp = 0;

Get Started Now

Execute