Set Variable

Set Variable

Note:

  • This task is applicable only to Zoho Creator.

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 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 new value to a variable declared earlier will overwrite the existing value.
  • Variables need not be declared initially before assigning values to them.

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;

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com