Home > Survey Logic, Uncategorized > (Survey Logic) Chapter 1 – Overview logic in SurveyToGo

(Survey Logic) Chapter 1 – Overview logic in SurveyToGo

Back to Table Of Contents

About Writing Expressions & Logic rules

SurveyToGo has been designed from the grounds up enable you to create powerful, robust surveys. One of the foundations for powerful & robust surveys is the ability to control the flow of the survey, and the data collected without imposing any limits. The most basic building blocks of the dynamic flow control and data collection mechanism of SurveyToGo are expressions and rules.


Logic Rules

Logic rules are composed out of expressions that when evaluate to true, control the flow of the survey. The SurveyToGo rules paradigm is depicted in the following figure:


Question rules are composed of 3 rule categories:

  • Entrance (Skip) Rule – Controls whether the question is displayed or not.
  • Validation Rules – Controls whether the answer is valid or not.
  • Jump (Branch) Rules – Controls the action to perform in response to the question answer.

Expression Questions / Calculation Questions

Expression questions are non-visual questions that when entered perform a specified expression, and return a value, as depicted in the following figure:


Example for an expression can be anything from a simple expression that knows how to add the answers of two previous questions and return the sum as the output of the expression, to a full-featured expression that can perform SQL queries on a data-source. You can control the action the expression will perform by mastering the various functions that are supported by expressions.

Expression Questions & Rules syntax

Both expression questions and rules contents are the same and are composed of one or more expressions. Expressions are written with the aid of pre-built functions that cover most of the most common requirements. However, when in need of additional capabilities not present in the pre-built functions, one can extend the functionality of the expressions by using C# compatible language.

Go To Chapter 2 – Entrance (Skip) Rules

Back to Table Of Contents

Visit us at: http://www.dooblo.net

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: