Expressions

Expressions

An expression is a combination of one or more explicit functions, variables, operators and constants. It is a valid unit of code that can be evaluated to a single value or object.

Types of Expressions

Expression in deluge are classified as follows:
  1. String Expression 
  2. Numeric Expression 
  3. DateTime Expression 
  4. Boolean Expression 

String Expression

A string expression represents a sequence of characters or text. For example: "abcd" , "zoho" + "platform" + " - online".
  1. strVar="Your contact has been saved";
  2. sendmail
  3. [
  4. To : zoho.adminuserid
  5. From : zoho.adminuserid
  6. Subject : "The feedback you had sent has been incorporated in zohoplatform"
  7. Message : "Comments" + strVar
  8. ]
In the above sample,
- The variable zoho.adminuserid returns the emailid of the application owner.
- "Comments" is a string expression.
- "Comments " +strVar is also a string expression.
 

Numeric Expression

A numeric expression evaluates to a number such as, floating point (e.g. 4.556 or -5.311) or integer numbers (e.g. -41 , 6243).
  1. English =4.556
  2. Arts=6243
  3. value = (English + Arts) / 2
In the above sample, (English + Arts) / 2 is a numeric expression.
 

DateTime Expression

A datetime expression involves operations with calendar terms such as date, time, day, week, etc. You can add or subtract a fixed number of days, week or time from date. The end value of such expression must be a valid date along with time information.
  1. today.getDay()
In the above sample, today returns the current date.
 

Boolean Expression

The boolean expressions are conditional expressions that evaluates certain condition and return true or false. The result of a Boolean expression is either true or false.
For example, 2 > 4, 4< 6 && (5%6) > 3.
  1. filters
  2. (
  3. priority
  4. status
  5. "High Priority" : ((priority == "V.High" || priority == "High") && (status == "Open"))
  6. )

Variables

Literals or Constants

Literals/Constants refer to fixed values that are written directly and will not be altered during program execution. For example, "Hello world", 4, etc., in which "Hello world" is a string literal and 4 is a numeric literal.
  1. sendmail
  2. [
  3. To : "<example>@zohoplatform.com"
  4. From : zoho.adminuserid
  5. Subject : "The feedback you had sent has been incorporated in zohoplatform"
  6. Message : "Comments"
  7. ]
In the above sample,
-The variable zoho.adminuserid returns the email id of the application owner
-"@zohoplatform.com" is a string constant.

    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION








                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                        Manage your brands on social media

                                          Zoho Desk Resources

                                          • Desk Community Learning Series


                                          • Digest


                                          • Functions


                                          • Meetups


                                          • Kbase


                                          • Resources


                                          • Glossary


                                          • Desk Marketplace


                                          • MVP Corner


                                          • Word of the Day


                                            Zoho Marketing Automation

                                              Zoho Sheet Resources

                                               

                                                  Zoho Forms Resources


                                                    Secure your business
                                                    communication with Zoho Mail


                                                    Mail on the move with
                                                    Zoho Mail mobile application

                                                      Stay on top of your schedule
                                                      at all times


                                                      Carry your calendar with you
                                                      Anytime, anywhere




                                                            Zoho Sign Resources

                                                              Sign, Paperless!

                                                              Sign and send business documents on the go!

                                                              Get Started Now




                                                                      Zoho TeamInbox Resources



                                                                              Zoho DataPrep Resources



                                                                                Zoho DataPrep Demo

                                                                                Get a personalized demo or POC

                                                                                REGISTER NOW


                                                                                  Design. Discuss. Deliver.

                                                                                  Create visually engaging stories with Zoho Show.

                                                                                  Get Started Now









                                                                                                      • Related Articles

                                                                                                      • Expressions

                                                                                                        Overview An expression is a combination of values, constants, variables, operators, or functions, evaluated to produce another value. The resulting value is one of the various data types, such as number, text, boolean, etc. Expressions are broadly ...
                                                                                                      • Criteria in conditional statements

                                                                                                        This guide will help you with the following: Overview Syntax Example Applicable operators and expressions for TEXT expressions Applicable operators and expressions for NUMBER and Decimal expressions Applicable operators and expressions for DATE-TIME ...
                                                                                                      • Assignment Statements

                                                                                                        Overview An assignment statement in Deluge uses the assignment operator (=) to assign the result of an expression to a variable. Syntax variable = expression;   Compound Assignment Operators A compound assignment operator is an operator that performs ...
                                                                                                      • Data types of Zoho Creator fields

                                                                                                        The following table displays the data type of each Zoho Creator field: Note: Subform field is an advanced field type, which contains fields of varied data types. So, a subform field does not take any data type as such. However, we can refer to the ...
                                                                                                      • Data Access - Criteria to fetch records

                                                                                                        This guide will help you with the following: 1. Overview 2. Syntax 3. Applicable operators for different datatypes Overview A criteria is required when you need to fetch a collection of records. Criteria comprises of one or more conditions separated ...
                                                                                                        Wherever you are is as good as
                                                                                                        your workplace

                                                                                                          Resources

                                                                                                          Videos

                                                                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                          eBooks

                                                                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                          Webinars

                                                                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                          CRM Tips

                                                                                                          Make the most of Zoho CRM with these useful tips.



                                                                                                            Zoho Show Resources