PDA

View Full Version : How to do notation in Apex?


smilodon
02/26/2011, 11:33 AM
How to do notation in Apex command line?
For example:

<skimmer>

Fallback ON
Set ON
** If Time 11:00 to 00:00 Then OFF **
Defer 005:00 Then ON

In the third sentence, I want apex skip this sentence so far.
But I want to keep it in the apex so I can easy to make it work in the furture.

I know other computer language has this function, but I don't know if apex has it or not.

swearint
02/26/2011, 11:52 AM
No that is not currently supported. However, since the Apex executes top to bottom, later statements have higher priority. So, you can move an unwanted statement higher up so that it is superceded by following code. In your example, moving the indicated code ahead of Set ON would have the same effect.

Todd

smilodon
02/26/2011, 12:44 PM
You are right. I didn't thought about that. Thanks.