structured if executes only the true branch move
Status: Match
R1=0 IF R1 == 0 G1 X10 ELSE G1 X20 ENDIF
{
"filename": null,
"active_skip_levels": [],
"tool_change_mode": "deferred_m6",
"enable_iso_m98_calls": false
}{
"name": "if_else_branch",
"description": "structured if executes only the true branch move",
"initial_state": {
"modal": {
"motion_code": "",
"working_plane": "xy",
"rapid_mode": "linear",
"tool_radius_comp": "off",
"active_tool_selection": null,
"pending_tool_selection": null,
"selected_tool_selection": null
}
},
"options": {
"filename": null,
"active_skip_levels": [],
"tool_change_mode": "deferred_m6",
"enable_iso_m98_calls": false
},
"expected_events": [
{
"type": "linear_move",
"source": {
"filename": null,
"line": 3,
"line_number": null
},
"target": {
"x": 10.0,
"y": null,
"z": null,
"a": null,
"b": null,
"c": null
},
"feed": null,
"effective": {
"motion_code": "G1",
"working_plane": "xy",
"rapid_mode": "linear",
"tool_radius_comp": "off",
"active_tool_selection": null,
"pending_tool_selection": null,
"selected_tool_selection": null
}
},
{
"type": "completed"
}
]
}
{
"name": "if_else_branch",
"description": "structured if executes only the true branch move",
"initial_state": {
"modal": {
"motion_code": "",
"working_plane": "xy",
"rapid_mode": "linear",
"tool_radius_comp": "off",
"active_tool_selection": null,
"pending_tool_selection": null,
"selected_tool_selection": null
}
},
"options": {
"filename": null,
"active_skip_levels": [],
"tool_change_mode": "deferred_m6",
"enable_iso_m98_calls": false
},
"expected_events": [
{
"type": "linear_move",
"source": {
"filename": null,
"line": 3,
"line_number": null
},
"target": {
"x": 10.0,
"y": null,
"z": null,
"a": null,
"b": null,
"c": null
},
"feed": null,
"effective": {
"motion_code": "G1",
"working_plane": "xy",
"rapid_mode": "linear",
"tool_radius_comp": "off",
"active_tool_selection": null,
"pending_tool_selection": null,
"selected_tool_selection": null
}
},
{
"type": "completed"
}
]
}