Oxygen Basic
Information => Reference => Topic started by: kryton9 on June 19, 2011, 08:34:07 PM
Title:
skip how does it work?
Post by:
kryton9
on
June 19, 2011, 08:34:07 PM
As you can tell I am going through the help again this time focusing things I couldn't figure out.
I couldn't get skip to work? Is it a command or just a reference word to find how to skip code with the commenting symbols?
Title:
Re: skip how does it work?
Post by:
Charles Pegge
on
June 20, 2011, 02:01:00 AM
Skip ( ... ) is an alteranative way of excluding code from compilation.
/* .. */ commenting out is safer during debugging because
Skip
is sensitive to unbalanced brackets but is it has its uses:
Code:
[Select]
'excluding blocks of code
def contract skip
'including blocks of code:
def contract
contract (
...
)
You also have preprocessor:
#define contract
#ifdef contract
...
#endif
Charles
Title:
Re: skip how does it work?
Post by:
kryton9
on
June 20, 2011, 03:19:19 AM
Here is a simple working example.
Code: OxygenBasic
skip
(
print
" will I
print
from
inside the
skip
block
? "
)
print
" I am outside
of
the
skip
block
and
should
print
. "