Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
Conditional procedure argument
l.holetzke
✭✭
Hi,
could you please provide an example, how to use a conditional procedure argument?
The "conditional procedure argument" is described as part of the language in the "RAPID kernel" topic Statements/Procedure call:
could you please provide an example, how to use a conditional procedure argument?
The "conditional procedure argument" is described as part of the language in the "RAPID kernel" topic Statements/Procedure call:
'\' <identifier> '?' ( <parameter> | <VAR> )<p><conditional procedure argument> ::=</p>
Tagged:
0
Comments
-
Ok, got it by myself
MODULE TestModule<br> PROC Main() <br> VAR wobjdata ok2;<br> TPErase;<br> TestProc \ok:=ok2;<br> ENDPROC<br> <br> PROC TestProc(\wobjdata wobj,\wobjdata ok)<br> TestProc2 \wobj?wobj, \ok?ok;<br> ENDPROC<br> <br> PROC TestProc2(\wobjdata wobj,\wobjdata ok)<br> IF Present(wobj) THEN<br> TPWrite "wobj present";<br> ENDIF<br> IF Present(ok) THEN<br> TPWrite "ok present";<br> ENDIF<br> ENDPROC<br>ENDMODULE
0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 365 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 854 RAPID Programming
- 37 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings