09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Present Tests if an optional parameter is used<br />

Example<br />

Present is used to test if an optional argument has been used when calling a routine.<br />

An optional parameter may not be used if it was not specified when calling the routine.<br />

This function can be used to test if a parameter has been specified, in order to prevent<br />

errors from occurring.<br />

PROC feeder (\switch on | \switch off)<br />

IF Present (on) Set do1;<br />

IF Present (off) Reset do1;<br />

ENDPROC<br />

The output do1, which controls a feeder, is set or reset depending on the argument<br />

used when calling the routine.<br />

Return value Data type: bool<br />

Arguments<br />

TRUE = The parameter value or a switch has been defined when calling the routine.<br />

FALSE = The parameter value or a switch has not been defined.<br />

Present (OptPar)<br />

OptPar (Optional Parameter) Data type: Any type<br />

The name of the optional parameter to be tested.<br />

<strong>RAPID</strong> Reference Manual 9-Present-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!