Databases Reference
In-Depth Information
For our purpose, we want to create a new variable and assign a value to it, so select
the
assign new
action, as shown in the preceding screenshot. This will insert a
template
for the
assign new
action into our function body (as shown in the following
screenshot). We then configure the action by clicking on each part within the
template and defining it as appropriate.
The first part we need to define is the type of variable we wish to create. Click on
the
<type>
element within our
<assign>
statement, and the rule editor displays a
drop-down list displaying all the available types. For our purposes, select
Calendar
.
Next, click on
var
. This will prompt us to enter the name of the variable that we want
to create. Specify
today
, and hit
enter
.
Finally, we need to specify the value we want to initialize our variable with. Click on
the
<expression>
element. The rule editor will display a drop-down box listing all
the valid values we can assign to our variable, as shown in the following screenshot: