You are here: Elements > Methods > BranchMethods

BranchMethods

Branch Methods are used in BRANCH statements. The return value of a Branch Method is (effectively) the name of a FIELD, GROUP, or GROUP FIELD to which a branch is to be made. In all cases the resultant statement is executed and then control is returned to the statement following the BRANCH.

There are two main types of Branch methods. The first branches from a table, and the second branches based on whether the data is from the DTE or DCE side. This latter method is used in serial connections, mostly for master-slave type circuits where there is nothing in the data to distinguish between a command sent by the master and a response sent by the slave. In this case, the monitoring protocol analyzer must be placed such that the data from the master and slave appear on the expected sides of the circuit.