Ragebar Posted January 14, 2013 Share Posted January 14, 2013 Arkadaşlar bana if ve elseif konusunda yardım edebilirmisiniz. Yardım derken if elseif konusunu basit bi programla anlatsanız gerçekten süper olacak. Şimdiden teşekkürler. Quote Link to comment Share on other sites More sharing options...
blue_life Posted January 14, 2013 Share Posted January 14, 2013 Autoitteki en basit komutlardan biridir. Örnek veriyorum, sen kurcalarsın. Global $Degisken_1 = 5 Global $Degisken_2 = 5 If $Degisken_1 = $Degisken_2 Then MsgBox(64, "", "Değişkenler eşit!") Else MsgBox(64, "", "Değişkenler eşit deyil!") EndIf ; ------------- $Degisken_1 += 1 ;Bir arttıralım If $Degisken_1 = $Degisken_2 Then MsgBox(64, "", "Değişkenler eşit!") ElseIf $Degisken_1 > $Degisken_2 Then MsgBox(64, "", "Birinci değişken ikinci değişkenden büyük!") ElseIf $Degisken_1 < $Degisken_2 Then MsgBox(64, "", "Ikinci değişken birinci değişkenden büyük!") EndIf ; ------------- $Degisken_2 += 2 ;iki arttıralım If $Degisken_1 = $Degisken_2 Then MsgBox(64, "", "Değişkenler eşit!") ElseIf $Degisken_1 > $Degisken_2 Then MsgBox(64, "", "Birinci değişken ikinci değişkenden büyük!") ElseIf $Degisken_1 < $Degisken_2 Then MsgBox(64, "", "Ikinci değişken birinci değişkenden büyük!") EndIf ; ------------- If FileExists("C:\Windows") Then MsgBox(64, "", "C:\Windows mevcut") Else MsgBox(64, "", "C:\Windows mevcut deyil!") EndIf ; ------------- If Not FileExists("C:\Windows1") Then MsgBox(64, "", "C:\Windows mevcut deyil!") Else MsgBox(64, "", "C:\Windows mevcut") EndIf ; ------------- vs. vs. gibi çoğaltmak mümkün.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.