Default Nodes
@bluepjs coming with default set of Nodes. New Nodes can be added be Developers
Note
Current list of Nodes is small cuz was developed “on demand” and doesn’t contains all basic operations with different types.
New Nodes will be updated in next versions.
Booleans
And (A && B)
![boolean and](../_images/boolean-and-or.png)
Modifier node with multiple inputs.
Set output “Result” as logical AND of inputs.
Or (A || B)
![boolean or](../_images/boolean-and-or.png)
Modifier node with multiple inputs.
Set output “Result” as logical OR of inputs.
Not (!A)
![boolean not](../_images/boolean-not.png)
Modifier node.
Set output “Result” as logical NOT of input.
Equal (A === B)
![boolean eq](../_images/boolean-eq.png)
Modifier node.
Set output “Result” as A === B
Numbers
Equal (A === B)
![number eq](../_images/number-eq.png)
Modifier node.
Set output “Result” as A === B
Is even
![number is even](../_images/number-is-even.png)
Modifier node.
Set output “Result” to true
if input number is even.
Greater or equal then
![number is greater or equal then](../_images/number-gte.png)
Modifier node.
Set output “Result” to true
if input A is greater then input B (or equal if boolean input is true
).
To String
![number to string](../_images/number-to-string.png)
Modifier node.
Stringify input number.
Plus (A + B)
![number plus](../_images/number-plus.png)
Modifier node with multiple inputs.
Set output “Result” as summ of inputs
Strings
Append (A + B)
![string append](../_images/string-append.png)
Modifier node with multiple inputs.
Set output “Result” as united inputs.
Datetime
Note
@bluepjs uses dayjs
(website) library to manage date/time/datetime.
Create
![datetime create](../_images/datetime-create.png)
Modifier node.
Creates basic/datetime
object using numbers input.
Unwrap
![datetime unwrap](../_images/datetime-unwrap.png)
Modifier node.
Unwrap basic/datetime
object into numbers.
To String
![datetime to string](../_images/datetime-to-string.png)
Modifier node.
Formats basic/datetime
into string by format template.
Note
Check dayjs format docs.
Now
![datetime now](../_images/datetime-now.png)
Executable node.
Created basic/datetime
output with current datetime.
Undefined
Is undefined
![is undefined](../_images/undefined-is.png)
Modifier node.
Set “Result” output to true
if input is undefined.
Note
javascript: typeof input === 'undefined'
Branches and execution flow
For
![for loop](../_images/flow-for.png)
Executable node.
For loop to iterate by ‘from-to-step’
Each
![each loop](../_images/flow-each.png)
Executable node.
Each loop to iterate arrays.
If
![if/else node](../_images/flow-if.png)
Executable node.
If/else node.
Switch .. case
![switch .. case](../_images/flow-switch.png)
Executable node with multiple inputs/outputs.
Switch .. case node.
Call
![Call Node example](../_images/user-blueprint-call-node.png)
Executable node.
Autogenerated by IDE. Can’t be added/removed manualy.
Return
![Return Node example](../_images/user-blueprint-return-node.png)
Executable node.
Can be added for Functions with outputs.
Wait
![wait](../_images/flow-wait.png)
Executable node.
Pause execution flow for ms input.
Function
![function example](../_images/flow-function.png)
Dynamic executable node.
Autogenerated by IDE nodes for each available Function.
Note
Colorize function described in extended integration example
Others
Console log
![console log](../_images/console-log.png)
Executable node.
Prints message to Vm console.
Enums
Enums nodes are autogenerated by IDE for each enum
Equal
![enum equal](../_images/enum-eq.png)
Modifier node.
Check if inputs are same.
To String
![enum to string](../_images/enum-to-string.png)
Modifier node.
Stringify input enum value.
Structs
Structs nodes are autogenerated by IDE for each struct.
Note
Struct on images described in extended integration example.
Pack
![struct pack](../_images/struct-pack.png)
Modifier node.
Creates struct by fields.
Unpack
![struct unpack](../_images/struct-unpack.png)
Modifier node.
Unpack struct by fields.
To Object
![struct to object](../_images/struct-to-object.png)
Modifier node.
Convert type from struct type to basic/object
(javascript object)
From Object
![struct from object](../_images/struct-from-object.png)
Modifier node.
Convert type from basic/object
(javascript object) to struct type.
Function inputs/outputs/variables, class properties
For any Function (simple function, event function, class constructor or method) there are autogenerated by IDE getters and setters Nodes.
Generating depends on variable context and access for class properties.
Get
Get Function variable:
![get function variable](../_images/get-variable.png)
Get Class property:
![get class property](../_images/get-property.png)
Getter node.
Get required variable/property. For Classes takes object of class to modify.
Set
Set Function variable:
![set function variable](../_images/set-variable.png)
Set Class property:
![set class property](../_images/set-property.png)
Executable node.
Set required variable/property. For Classes takes object of class to modify.
Classes
Classes Nodes are autogenerated by Classes and Actors.
This
![class this](../_images/class-this.png)
Getter node.
Exists only in Class methods and constructor blueprints. Returns “this” pointer of object.
Cast to
![class this](../_images/class-cast-to.png)
Modifier node.
Exists only when some Classes Inheritance is found. Convers object type from parent type to child type.
New
![class new](../_images/class-new.png)
Executalbe dynamic node.
Exists only when some Classes exists. Creates new object of class. Node inputs are autogenerated by selected constructor inputs.
Constructor
![class constructor](../_images/class-constructor.png)
Executalbe dynamic node.
Exists only when some Classes Inheritance exists in child classes constructors. Allows call (or not) parent class constructors.
Note
Example image demostractes “Demo class 2” constructor. “Demo class 2” defined as extends from “Demo Class 1”.
Method
![class method](../_images/class-method.png)
Executalbe dynamic node.
Autogenerated by IDE for Classes/Actors methods with accesibility checking (public/protected/private/…). Takes object to use as input.
Note
Colorize function described in extended integration example