Expression Cookbook

The Expression Cookbook is a guide intended as a primer for those who have little or no experience working with programming and expressions, and as such all explanations and exercises are written for the benefit of those learning how to program for the first time. Despite this, experienced programmers may find some of the lessons contained in this guide useful for refreshing their knowledge of certain coding principles and methods.

The Expression Cookbook will introduce you to the concept of expressions, how they are written, and demonstrate how they can be used in real-world situations. Although it is beneficial for the reader to have an understanding of basic arithmetic, it is intended for this guide to be used with minimal prior education on the subject.

Although this guide is written specifically about the KnowledgeKube Expression Engine and associated tools, many of the programming principles in this book are applicable to other programming languages and applications, and several terms and keywords will carry over and lend themselves to those languages. Indeed, as you read this book you may recognise some of the terms you see, especially if you have used applications containing functions such as Microsoft Excel.

The various topics in this guide are collected as seven primary chapters, or lessons, which should allow the reader to assimilate one aspect of the subject of expressions, practice for a while, then return to the book at their own pace to begin the next lesson and build upon what they have already learned. Each lesson assumes that the reader has an understanding of the concepts discussed in the previous lessons, so it is advised that the reader at least consults the previous lesson’s summary to confirm they are confident with the ideas and techniques discussed therein.

Each lesson is broken down into a number of sub-headings, then rounded out with a chapter summary and a number of exercises that allow you to test yourself on what you have learned.

At the end of this guide, the reader should have a working knowledge of the majority of keywords and functions in the KnowledgeKube Expression Engine, and be confident enough to understand, write and modify expression code to achieve the desired effects.

Start: What is an Expression? >>