The 'On GoTo' statement as a calculated jump exists in gambas since version 3.2.
Jumps to one of the calculated labels. The evaluation of' Expression' must produce an integer value in order to select a (target) label.
On Expression GoTo Label_0 [ , Label_1 ... ] … Label_0: Instruction(s) Label_1: Instruction(s) …