Here is an example of a simple jump function in MATLAB:
main.m74 chars8 linesThis function takes an input x, and outputs x+1 if x is non-negative, and x-1 otherwise. The if statement in the middle is the conditional that performs the "jump".
gistlibby LogSnag