Donone
11-24-2007, 05:09 PM
I am having difficulty with achieving the equivalent of the following dual purpose func, which does not work due to null and false being the same.
public func visible(value$)
if(value$<>null)
if(value$ or value$==False)
visible$=value$;
ShowSprite(Sp$,visible$);
end;
end;
return(visible$);
end;
I want to either change the value or return the current without changing it. I thought null input would have solved it but it only works with non-boolean functions.
Any ideas please.
public func visible(value$)
if(value$<>null)
if(value$ or value$==False)
visible$=value$;
ShowSprite(Sp$,visible$);
end;
end;
return(visible$);
end;
I want to either change the value or return the current without changing it. I thought null input would have solved it but it only works with non-boolean functions.
Any ideas please.