Jump to content



Photo

!=


  • Please log in to reply
50 replies to this topic

#1 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 01:30 PM

If 1 != 2 Then
EndIf

Why not?

I have to do this instead

If Not (1 = 2) Then
EndIf

Or this

If 1 <> 2 Then
EndIf

Maybe I'm missing something. ;)

Edited by ligenza, 29 September 2005 - 02:33 PM.






#2 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 29 September 2005 - 01:36 PM

!= = <>

lol, it looks like a shovel ;)

Edited by w0uter, 29 September 2005 - 01:36 PM.

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#3 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 01:39 PM

!= = <>

lol, it looks like a shovel :P

!= works...? ;)

#4 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 29 September 2005 - 02:04 PM

AFAIK <> is the same as !=
My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#5 this-is-me

this-is-me

    Pursuer of obscure functionality

  • Active Members
  • PipPipPipPipPipPip
  • 2,372 posts

Posted 29 September 2005 - 02:12 PM

@wouter, yes, it is. The statement means less than and greater than, which means it can't be the same.
Who else would I be?

#6 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 02:32 PM

@wouter, yes, it is. The statement means less than and greater than, which means it can't be the same.

;If 1 != 2 Then MsgBox(0, "!=", ""); Generates an error If 1 <> 2 Then MsgBox(0, "<>", ""); Works


Why can't I have both..? I think .NET allows the use of either or.

#7 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 29 September 2005 - 02:34 PM

why WANT both ?
My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#8 this-is-me

this-is-me

    Pursuer of obscure functionality

  • Active Members
  • PipPipPipPipPipPip
  • 2,372 posts

Posted 29 September 2005 - 02:35 PM

I have the same question. It is a total of 2 keys to learn on the keyboard. Why have another operator?
Who else would I be?

#9 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 29 September 2005 - 02:55 PM

;If 1 != 2 Then MsgBox(0, "!=", ""); Generates an error If 1 <> 2 Then MsgBox(0, "<>", ""); Works


Why can't I have both..? I think .NET allows the use of either or.

Because "AutoIt v3 is a freeware BASIC-like scripting language...." and BASIC uses <> as the not-equals operator.

Maybe the devs think it's a slippery slope. If someone wants !=, then someone else will want the ability to use ! instead of the NOT keyword.....
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

#10 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 03:42 PM

Because "AutoIt v3 is a freeware BASIC-like scripting language...." and BASIC uses <> as the not-equals operator.

Maybe the devs think it's a slippery slope. If someone wants !=, then someone else will want the ability to use ! instead of the NOT keyword.....

Allow users to create their own operators then like in .NET. It's the spirit of open source to give people OPTIONS. I've used <> and != for years so it's not a big issue. The community mentality here is.

#11 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 29 September 2005 - 03:48 PM

omg omg i want ! to be not.
My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#12 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 04:00 PM

omg omg i want ! to be not.

me 2 !

#13 Lazycat

Lazycat

    Coding cat

  • MVPs
  • 1,174 posts

Posted 29 September 2005 - 05:51 PM

Allow users to create their own operators then like in .NET. It's the spirit of open source to give people OPTIONS. I've used <> and != for years so it's not a big issue. The community mentality here is.


Oh yes. Own operators. This cool. I can't live without ten or eleven operators that do one thing. Yeah.
Do you noticed about .NET framework size? And it's speed? Do you want that Autoit come this way? I'm not ;)
Koda homepage (http://www.autoitscript.com/fileman/users/lookfar/formdesign.html) (Bug Tracker)My Autoit script page (http://www.autoitscript.com/fileman/users/Lazycat/)

#14 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 07:26 PM

Oh yes. Own operators. This cool. I can't live without ten or eleven operators that do one thing. Yeah.
Do you noticed about .NET framework size? And it's speed? Do you want that Autoit come this way? I'm not ;)

... you know not what you speak. .NET is a million things AutoIt will never be so don't fear of making it a usefull language. :P

#15 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 29 September 2005 - 07:59 PM

(i so hope you get a ban from the forums for posting like that)

if .net is so usefull.
why dont you go use it and leave ?

Edited by w0uter, 29 September 2005 - 08:00 PM.

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#16 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 08:01 PM

(i so hope you get a ban from the forums for posting like that)

if .net is so usefull.
why dont you go use it and leave ?

Because there are tards like you that make the forum so entertaining! Playing around with AutoIt has not had an impact on my .NET coding.

#17 Insolence

Insolence

    Not distastefully arrogant

  • Active Members
  • PipPipPipPipPipPip
  • 1,304 posts

Posted 29 September 2005 - 08:52 PM

.NET IS so useful, this idea is just coming from someone on the other side of the tracks, without a background in BASIC.

Ligenza, simple fact of the matter is <> goes along with the BASIC style everyone is already useful. Version 4 will hopefully move to a bracketed language (is that what you call 'em?) and accept operators as such.

Until then, welcome to the forum. Feel free to let w0uter off easily this time, he just doesn't realize the power of .NET ;)
"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

#18 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 09:55 PM

.NET IS so useful, this idea is just coming from someone on the other side of the tracks, without a background in BASIC.

Ligenza, simple fact of the matter is <> goes along with the BASIC style everyone is already useful. Version 4 will hopefully move to a bracketed language (is that what you call 'em?) and accept operators as such.

Until then, welcome to the forum. Feel free to let w0uter off easily this time, he just doesn't realize the power of .NET :P

Okay, only for you though. ;)

#19 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 29 September 2005 - 10:00 PM

java > .net

atleast thats what my teacher says ;)


i remember (something like) this

autoit is a scripting language, not a coding language


My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#20 ligenza

ligenza

    Adventurer

  • Active Members
  • PipPip
  • 129 posts

Posted 29 September 2005 - 10:06 PM

java > .net

atleast thats what my teacher says ;)
i remember (something like) this

Those who can't, teach.

.net > java




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users