File size: 2,097 Bytes
d4f61a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
The Evaluate Integers, Floats, and Strings nodes 
now employ the SimpleEval library, enabling secure 
creation and execution of custom Python expressions.

(https://github.com/danthedeckie/simpleeval)

Below is a short list of what is possible.
______________________________________________

"EVALUATE INTEGERS/FLOATS" NODE EXPRESSION EXAMPLES:

Addition: a + b + c
Subtraction: a - b - c
Multiplication: a * b * c
Division: a / b / c
Modulo: a % b % c
Exponentiation: a ** b ** c
Floor Division: a // b // c
Absolute Value: abs(a) + abs(b) + abs(c)
Maximum: max(a, b, c)
Minimum: min(a, b, c)
Sum of Squares: a**2 + b**2 + c**2
Bitwise And: a & b & c
Bitwise Or: a | b | c
Bitwise Xor: a ^ b ^ c
Left Shift: a << 1 + b << 1 + c << 1
Right Shift: a >> 1 + b >> 1 + c >> 1
Greater Than Comparison: a > b > c
Less Than Comparison: a < b < c
Equal To Comparison: a == b == c
Not Equal To Comparison: a != b != c
______________________________________________

"EVALUATE STRINGS" NODE EXPRESSION EXAMPLES:

Concatenate: a + b + c
Format: f'{a} {b} {c}'
Length: len(a) + len(b) + len(c)
Uppercase: a.upper() + b.upper() + c.upper()
Lowercase: a.lower() + b.lower() + c.lower()
Capitalize: a.capitalize() + b.capitalize() + c.capitalize()
Title Case: a.title() + b.title() + c.title()
Strip: a.strip() + b.strip() + c.strip()
Find Substring: a.find('sub') + b.find('sub') + c.find('sub')
Replace Substring: a.replace('old', 'new') + b.replace('old', 'new') + c.replace('old', 'new')
Count Substring: a.count('sub') + b.count('sub') + c.count('sub')
Check Numeric: a.isnumeric() + b.isnumeric() + c.isnumeric()
Check Alphabetic: a.isalpha() + b.isalpha() + c.isalpha()
Check Alphanumeric: a.isalnum() + b.isalnum() + c.isalnum()
Check Start: a.startswith('prefix') + b.startswith('prefix') + c.startswith('prefix')
Check End: a.endswith('suffix') + b.endswith('suffix') + c.endswith('suffix')
Split: a.split(' ') + b.split(' ') + c.split(' ')
Zero Fill: a.zfill(5) + b.zfill(5) + c.zfill(5)
Slice: a[:5] + b[:5] + c[:5]
Reverse: a[::-1] + b[::-1] + c[::-1]
______________________________________________