Oxygen Basic

Programming => Bugs & Feature Requests => Topic started by: Charles Pegge on June 22, 2012, 01:35:29 AM

Title: Conditional equates using %%
Post by: Charles Pegge on June 22, 2012, 01:35:29 AM
'%%' means 'define it only if it does not exist already'.

%    a 45
%% a 90
%% b 180

print a 'result 45
print b 'result 180

It also works with string equates and other macros defined in this manner.

You can also use $ and $$ as an alternative to % and %%

Available on the latest Oxygen-in-progress

Charles