Click or drag to resize

CommandListAppendCaseRel(Int32, Int32) Method

Used in a switch-block, specifies a test case and the relative offset of a target command within the current list.


Namespace: RAYLASE.SPICE3.ClientLib
Assembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.6.0
Syntax
C#
public void AppendCaseRel(
	int pos,
	int value
)

Parameters

pos  Int32
The relative position of the target command within the current list. This case will apply if the comparison is an exact match.
value  Int32
The condition value against which the integer variable will be tested.
Remarks
Appends a CASE_GOTO_REL command to the list.

Before calling AppendCaseRel, you should call ListAPIGetListCaret(Int32) so that you can correctly calculate the relative offset to the target command.


See also: 12.5.3.1 Flow-Control within the current Command List

See Also