KurogamineNox 0 Posted September 18, 2010 Okay, something is fishy. My code just refuses to work. if Not $version = "1.1" Then MsgBox(4096, "Update", "Update Available, Must Download Update Version. Program Shutting Down") ShellExecute("http://halconknights.webs.com/") Exit EndIf When it gets the version number it is 1.2, yet the if Not statement just refuses to work. Since $version = 1.1 is not true, the not statement should work, or am I just mistaken? Share this post Link to post Share on other sites
wakillon 404 Posted September 18, 2010 Try $version='1.2' if $version <> "1.1" Then MsgBox(4096, "Update", "Update Available, Must Download Update Version. Program Shutting Down") ShellExecute("http://halconknights.webs.com/") Exit EndIf AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
AdmiralAlkex 126 Posted September 18, 2010 You are using Not the wrong way. To do what you want you need: $iVersion = "1.2" If Not ($iVersion = "1.1") Then ConsoleWrite(Random() & @CRLF) EndIf Or even better, the "not equal" sign: $iVersion = "1.2" If $iVersion <> "1.1" Then ConsoleWrite(Random() & @CRLF) EndIf So why didn't your code work? Run this and you should get it: ConsoleWrite((Not $iVersion) & @CRLF) ConsoleWrite((False = "1.1") & @CRLF) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
KurogamineNox 0 Posted September 18, 2010 Alright thanks. Ill have to look into more on the Not stuff then. Changing the = into <> worked. So thanks again. Share this post Link to post Share on other sites