! Note |
If you want to know how to do calculations between dates and times, go straight to the bottom of this page!
Status |
---|
subtle | true |
---|
colour | Green |
---|
title | Example |
---|
|
Code Block |
---|
language | xml |
---|
linenumbers | true |
---|
|
[Left Value] [+] [Right Value] = [Result Value] |
Image RemovedImage Added
Operators
Operator | Meaning | Example |
---|
+ | Add two operands or unary plus | x + y +2 |
- | Subtract right operand from the left or unary minus | x - y -2 |
* | Multiply two opeands | x * y |
/ | Divide left operand by the right one (always results into float) | x / y |
% | Modulus - remainder of the division of left operand by the right | x % y (remainder of x/y) |
// | Floor division - division that results into whole number adjusted to the left in the number line | x // y |
** | Exponent - left operand raised to the power of right | x**y (x to the power y) |
Need help?
Technical contact to tech@argos-labs.com
May you search all operations,
ActionsVerificationsSystem CallsInteractives1. When using User Variables, you can store the Result Value in one of the Left or Right values.
(you can use it as a counter!)
Status |
---|
subtle | true |
---|
colour | Green |
---|
title | Example |
---|
|
When you want to user {{user.variable1}} as a counter for increment of 1
Code Block |
---|
language | xml |
---|
linenumbers | true |
---|
|
Left Value {{user.variable1}}
Operator +
Right Value 1
Result Value {{user.variable1}} |
2. When calculating dates/times, here are the tips!
Code Block |
---|
language | xml |
---|
theme | Confluence |
---|
linenumbers | true |
---|
|
YYYYMMDD
YYYY-MM-DD
YYYY/MM/DD
MMDDYYYY
MM-DD-YYYY
MM/DD/YYYY
B D YYYY
B D, YYYY
D B YYYY
YYYYMMDD-HHMMSS.mmm
YYYY-MM-DD HH:MM:SS.mmm
YYYY/MM/DD HH:MM:SS.mmm
MMDDYYYY-HHMMSS.mmm
MM-DD-YYYY HH:MM:SS.mmm
MM/DD/YYYY HH:MM:SS.mmm
YYYYMMDD-HHMMSS
YYYY-MM-DD HH:MM:SS
YYYY/MM/DD HH:MM:SS
MMDDYYYY-HHMMSS
MM-DD-YYYY HH:MM:SS
MM/DD/YYYY HH:MM:SS |
2-2. You can use only [+] or [-] operator.
2-3. Right Value can take only the following “time-delta” notations. There is NO SPACE after [n].
Code Block |
---|
language | xml |
---|
theme | Confluence |
---|
linenumbers | true |
---|
|
[][][][][][][][][]Note: [n] is an Integer.
There is NO SPACE after [n].
2-4. You can use date or datetime for the Right Value only when operator is [-].
In this case, if Left Value is date, then the Right Value must be date. If the Left Value is datetime, then the Right Value must be datetime
. Anchor |
---|
1.1016.1047 | 1.10161047 Code Block |
---|
language | xml |
---|
theme | Confluence |
---|
linenumbers | true |
---|
|
YYYY|YY(Year) MM|M(Month) DD|D(Day) hh|h(Hour) mm|m(Minute) ss|s(Second)
|
You can combine then in various orders like shown in examples below.
Status |
---|
subtle | true |
---|
colour | Green |
---|
title | Example1 |
---|
|
June 03, 2019
YYYY.MM.DD => 2019.06.03
YY.MM.DD => 19.06.03
M/D => 6/3
Status |
---|
subtle | true |
---|
colour | Green |
---|
title | Example2 |
---|
|
Jun 03, 2019 13: 02: 03
M/D hhmmss=> 6/3 130203
M/D h:m=> 6/3 13:2
If you input data to ‘Custom Date Format’ field, regardless of ‘Out Date Format’, or ‘Out Date Time Format’ settings, only the custom date is applied.
Image Removed