Author Topic: Conditional equates using %%  (Read 1911 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Guest
Conditional equates using %%
« 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