NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void BranchComp ( const byte  cmp,
constant void  lbl,
variant  v1,
variant  v2 
)
inline

Branch if compare is true.

Branch to the specified label if the two values compare with a true result.

Parameters
cmpThe constant comparison code. See the Comparison Constants for valid values.
lblThe name of the label where code should continue executing if the comparison is true.
v1The first value that you want to compare.
v2The second value that you want to compare.
Warning
You cannot use NXC expressions with this function
Examples:
ex_nbcopt.nxc.