switch - confusing behaviour with numeric strings Topic is solved

Discuss the future of the AutoHotkey language
Helgef
Posts: 3998
Joined: 17 Jul 2016, 01:02
Contact:

switch - confusing behaviour with numeric strings

21 Aug 2019, 04:35

This behaviour is confusing:

Code: Select all

switch '1' 
{
	case '1.0': msgbox '1.0' == '1' ; Shows 0
}
the behaviour of == is preferable imo.
Cheers.
lexikos
Posts: 6653
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: switch - confusing behaviour with numeric strings  Topic is solved

24 Sep 2019, 02:22

Fixed in v2.0-a105.

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 7 guests