Data

Learn how to work with data in Kognitos.

Defining Data

In Kognitos, data is defined similarly to variables in software development. In a Playground or Process, data is defined using the following syntax:

<data name> is <data value> 

Each data element consists of a name and a value. In the example below, the customer is the data's name. It is assigned the value John Smith:

the customer is "John Smith"

Data Names

Data names determine how information is referenced. They can be simple or descriptive, using adjectives to add clarity or context.

Simple Name

the message is "hello"

Descriptive Name

the very special user greeting message is "hello"

Data Values

Data values can be numbers, text, tables, or even objects like documents. Values can also be singular or plural.

Numeric Values

Numeric values can be defined for data like age, balance, rates, etc.

John's age is 21
Sam's bank balance is $120.20
the interest rate is 1.25

Text and Date Values

When assigning text or date values, enclose them within double quotes ("").

Text

the customer name is "Alice"
the message is "Welcome to Kognitos!"

Date

the due date is "2024-11-05"

Plural Values

To define plural values for a data element, list the values together, separated by commas. For example:

the coupon codes are "SAVE20", "SALE2024" and "JUST4U"
John's email addresses are "john@gmail.com", "johnny@yahoo.com" and "johnsmith@aol.com"

Renaming and Reassigning Data

You can rename or assign data by usingas the or is the.

Example 1

In this example, the registration date is reassigned the value 11-05-2024.

use "11-05-2024" as the registration date

Example 2

In this example, the order name is assigned the value of the customer's last name.

the order name is the customer's last name

Example 3

In this example, the meeting date is assigned the value of tomorrow.

use tomorrow as the meeting date