Defsave page: Problems with the dev log

Could not post a review, sent me here.

Would be nice to see

if defsave.isset(“blah”,“key”) then
print “was set!”
end

Making an issue here would be best place for this kind of thing

Could you rephrase what you want? Do you want to see if something exists?

How about

defsave.key_exists(file, key) -- returns true if file is loaded and key's value is not nil, otherwise returns false

@Axel reviews not working? Would be nice to get a notification somewhere if someone posts a comment / review.

2 Likes

And @samuel.nystedt!

1 Like

I feel like you should put this on the Defsave page (entire API, since it is so simple…)

Personally, I like isset – less letters – but key_exists is fine …or I guess = nil ?

I added key_exists and isset as an alias to it. Let me know if it’s how you want it to be.

I do need to redo the documentation to be more complete.

1 Like

Thanks, @herb.gilliland – will look into this.

We’re working on it. We’re sort of understaffed until after the summer, so we can’t promise it’ll be done anytime soon. But this is something we want to do, for sure!

2 Likes

@herb.gilliland – I tested in Chrome, Safari and Firefox, but I can’t reproduce your error. Did you mean write a review on the dev log, as seen in the picture below?

1 Like