Using the notion of conflating process-flow with functions, Obyx derives four tied flow-functions: 'Instruction' for sequential processing elements, 'Comparison' for branch logic, 'Iteration' for loops, and 'Mapping' for switches and substitutions. It also uses an intuitive throw-catch system for error management, but does so at the Input-Output level.

Instruction

This function is for normal process flow. This is basically assignment statements allowing the developer to create and manipulate data.

Comparison

A branch is the function that allows execution of different code based upon a condition i.e. 3 > 2. The condition may be anything with a true/false answer i.e. does this variable exist? Is string 1 a substring of string 2? etc

Iteration

The loop function allows the code to iterate over the same section of code multiple times. MySQL support is built into the loop function to hide the need for complex arrays of data.

Mapping

The Map function is the most complex function for beginners to learn but the most powerful function once mastered. It is entirely possible to write OBYX programs without the map function, but once its mastered it can help to find solutions very quickly.

Throw and Catch

Throw and catch are managed at the input-output level. For instance, if an invalid xml object is passed as an input, then there is an output available called 'error' which can be handled directly




Last Modified: Thu, 15 Jan 2015