v1: Backported IsSet() from alpha branch. #186
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Replaces #185. The commit is now stored in its own branch.
IsSet
IsSet for AHK v1.1.
For reference:
The v2 commit: Added IsSet(Var).
The v2 documentation: IsSet.
Btw, I noticed that in AHK v2, the Exception.What property contains the function name, but not so in AHK v1.1.
E.g. try the Hotstring function.
Test code
Future functions
I intend to post (all AHK v1.1):
StrCount.
StrRept. (By repeated doubling, then the remainder.)
StrJoin. (Accepts an array for an alternating join string.)
Range. (Returns an array of int64s/doubles.) (Performance with a for loop was fine for 100,000 items.)
Base64Get/Base64Put and HexGet/HexPut. (The code, as is.)