Learn Deluge
Try Now
Functions
Resources
Basic
set variable
<variable> = <expression> ;
Creates a local variable with the given value will be accessibile within that action
add comment
//
Add comment to make your code more understandable
info
info <expression> ;
Adds debugger statement to your workflow
Condition
if
if ( <variable> <opr> <expression> ) { }
This statement validates criteria and if satisfies executes the statement in block sequentially
else if
else if ( <variable> <opr> <expression> ) { }
This statement will be executed on failure of 'if' statement and success on its criteria
else
else { }
This will be executed on failure of 'if' and 'else if' statement
Collection
create collection
<variable> = Collection();
To create a Collection
insert
<collection>.insert(<expression>);
To insert to collection
get
<collection>.get(<expression>);
To get value for the specified key
update
<collection>.update(<key/index>,<expression>);
To update values in collection
delete
<collection>.delete(<expression>);
To delete value in collection
for each element
for each <myvariable> in <collection> { }
Iterates element from collection
keys
<collection>.keys();
Returns a list of all the keys present in the collection
values
<collection>.values();
Returns a list of all the values present in the collection
contains key
<collection>.containsKey(<text>);
Checks for a specific key in collection
contains value
<collection>.containsValue(<text>);
Checks for a specific value in collection
clear
<collection>.clear();
Removes all values in collection
sort value
<collection>.sort();
To sort collection based on value
is empty
<collection>.isEmpty();
Check whether the Collection variable is empty or not
size
<collection>.size();
Returns the number of values present in the variable
Show/hide deluge tasks pane
2
1
// Type Here
2
Execute Script
Version 1
Version 1
Version 2
Keyboard Shortcuts
Ctrl
+
E
-
Execute Script
*
Ctrl
+
/
-
Toggle Comment
Ctrl
+
Alt
+
/
-
Toggle Block Comment
Ctrl
+
Space
-
Show Hint
.
-
Show functions / child variables
F3
-
Show Function Definition
Ctrl
+
.
-
Go to next hint tag
Ctrl
+
,
-
Go to previous hint tag
Ctrl
+
F
-
Find
Ctrl
+
Alt
+
F
-
Find & Replace
Ctrl
+
L
-
Go to line
Meta
+
Z
-
Undo
Meta
+
Shift
+
Z
-
Redo
*
works only in functions & schedules