• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

Introduction to data types

Some tooltip text!
• 1 minute to read
 • 1 minute to read

A data type tells the computer what something is so that it can be processed properly. CRMScript has 4 primitive data types and a huge range of complex types defined by the built-in classes.

Data types apply to:

  • literal values
  • variables
  • parameters in functions
  • return type of functions
  • objects of built-in classes

CRMScript is statically typed, meaning you must set the type in the declaration, and it can't be changed later.

Numbers

CRMScript has 2 types of numbers:

  • Integer (without decimals)
  • Float (with decimals)

You can use thearithmetic operators to do basic math.

Integer a = 5;
Integer b = 7;
Integer sum = a + b;

Strings

A text string is a sequence of characters written with quotes.

You can use the concatenation operator to join multiple strings.

String myCompany = "Super" + "Office";

Logical

The logical or boolean data type of CRMScript is Bool. Variables of this type can only have 2 values: true or false and are commonly used in comparisons and conditional statements.

In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top