A RAX EDITOR workflow is composed of collection of activities and variables that work all together. Most of the activities require variables in order to do its function. For more familiarization, here’s a brief definition of the most commonly used variable types on RAX EDITOR :
A Boolean can only have either 1 and 0, 1 as true and 0 as false, as its value. It is mostly used when you have a condition has two possible outcomes - true or false, yes or no, correct or wrong.
For example, Let’s create a Boolean variable, name it IHaveMoney and assign it’s default value to false. Drag an If activity inside the Workflow area and on its condition, write IHaveMoney = true. This will check if the Boolean variable IHaveMoney holds true as its value. Drag a Write Line on the Then Panel of the activity. On the Write Line text field, write “Alright, you can buy those”. Drag another Write Line and place it on the Else panel of the activity. On the Write Line Text field, type “You stop right there!”
Since the default value assigned to the Boolean is false, the output of the workflow would be “You stop right there!” because IHaveMoney is returning a false value.
Int32 represents a 32-bit signed integer. It is a fundamental variable type used to define numeric characters. You can use Int32 to declare or store any number as long as it’s not a date, a decimal or a fraction because integers are for whole numeric characters only.
For example, you want to create a loop on your workflow. You will need an integer variable as your counter. Another example is when you want to get a numeric value from one document and save it to another document. Your integer variable can store your numbers for you and return the value when you need to display it.
A String is a sequential collection of characters that is used to represent text. It is one of the most commonly used variable mainly because it holds text for you. You can store any text data to a string variable such as name, labels, brands, descriptions, etc.
Should you want to convert non-String variables output into Strings for instances where only String variables are accepted, you would just have to input the name of the variable and add .ToString
Below is an example where the row variable was declared as an Integer in anticipation of an increment at the end of the workflow. The Read Row activity, however, only accepts String values under Row. You will see that in order to use the row variable on the Read Row activity, we used row.ToString instead of row independently.
A DateTime variable specifically contains date and time values. It is mostly used when you want to record or track the date and time a certain process is done or executed. For example, we’ll create a workflow that will send an email to all company employees. We can use DateTime variable to monitor the time the emails were being delivered.