Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1: Backported IsSet() from alpha branch. #186

Merged
merged 1 commit into from
Oct 30, 2022
Merged

Conversation

jeeswg
Copy link
Contributor

@jeeswg jeeswg commented Jul 2, 2020

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

;==================================================

;test code: IsSet (AHK v1)

;==================================================

var := 123
MsgBox, % IsSet(notavar) ;0
MsgBox, % IsSet(var) ;1

;==================================================

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.)

@jeeswg jeeswg changed the title v1: IsSet() v1: Added IsSet(). Jul 13, 2022
@jeeswg jeeswg changed the title v1: Added IsSet(). v1: Backported IsSet() from alpha branch. Aug 17, 2022
@Lexikos Lexikos merged commit 5048dc4 into AutoHotkey:master Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants