Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 18:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Comparsion operators help

Discussion on Comparsion operators help within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Comparsion operators help

Hi

How do i check if field is filled width text then send something.

Like in php
Code:
if (!empty($var1)) { // if not empty
	// do stuff
}
Code:
If GUICtrlRead($input1) = "" Then ; how to check here if not empty
                Send("{ENTER}")
		Sleep(1000)
		Send(GUICtrlRead($input1))
		Send("{ENTER}")
		Sleep(500)
	EndIf
mlukac89 is offline  
Old 11/17/2014, 11:50   #2


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Code:
If GUICtrlRead($input1) <> "" Then ; how to check here if not empty
                Send("{ENTER}")
		Sleep(1000)
		Send(GUICtrlRead($input1))
		Send("{ENTER}")
		Sleep(500)
	EndIf
Requi is offline  
Thanks
1 User
Old 11/17/2014, 14:07   #3
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
If Not GUICtrlRead($input1) = "" Then
YatoDev is offline  
Thanks
1 User
Old 11/17/2014, 22:35   #4


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
Oder einfach
Code:
If GUICtrlRead($input1) Then
Lawliet is offline  
Thanks
1 User
Old 11/17/2014, 23:55   #5
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Quote:
Originally Posted by Lawliet! View Post
Oder einfach
Code:
If Not GUICtrlRead($input1) Then
er wollte es ja eben umgekehrt
YatoDev is offline  
Old 11/18/2014, 12:30   #6


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
Quote:
Originally Posted by »FlutterShy™ View Post
er wollte es ja eben umgekehrt
Hast du meinen Post im Zitat geändert? ^^

Quote:
If a string is used as a boolean and it is an empty string "" , it will be assumed to equal False (see below).
Sprich "" is False und alles andere True

Code:
If GUICtrlRead($input1) Then
ist also True, wenn etwas in der Textbox steht.
Lawliet is offline  
Old 11/18/2014, 13:54   #7
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Quote:
Originally Posted by Lawliet! View Post
Hast du meinen Post im Zitat geändert? ^^



Sprich "" is False und alles andere True

Code:
If GUICtrlRead($input1) Then
ist also True, wenn etwas in der Textbox steht.
ja ist das schlimm?

Ok hast recht hab mich vertan xD
YatoDev is offline  
Old 11/18/2014, 14:25   #8
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Im Endeffekt spielt es eigentlich keine Rolle was man nimmt. Alles funktioniert.
alpines is offline  
Reply


Similar Threads Similar Threads
WTS Shaiya US Operators Exclusive hammers $0.75 Each!!
03/28/2013 - Shaiya Trading - 2 Replies
..
Operators exclusives ($0.8 each)
12/25/2012 - Shaiya Trading - 1 Replies
Hello I have shaiya US X4 merged server OPs for sale, 0.8usd each, transaction by paypal: skype add me id "edjinam". Don't worry about amount. I have a good stock I swear.
Operators exclusives sale
12/02/2012 - Shaiya Trading - 1 Replies
Selling Operators exclusives for shaiya US X4 merged servers. Paypal only skype at "edjinam". Safe trade guaranteed. My ratio is here: $15=20OP $30=40OP $50=65OP $80=100OP
[WTB] Shaiya US (Lailah) Operators Hammer
07/06/2012 - Shaiya Trading - 0 Replies
Heylo, willing to spend 85€ or around 105$ for OPs. The one giving the most will win. I will trade through PayPal. You first , im trusty enough here and if u don't trust me we could use a trusty middleman (you pay it if they want money) or you can give small amounts all the way.
[WTS] [1$] Operators Exclusive in Shaiya US
06/25/2012 - Shaiya Trading - 1 Replies
I am selling around 133 OPs for $1 each on shaiya US. if you are interesting pls pm or type here The transaction will be PayPal only.



All times are GMT +1. The time now is 18:16.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.