Jump to content
faustf

confusion how to use operator logic And

Recommended Posts

faustf

hi guys, i know is  very basical  questions :( , but some time i lose me.......,

so i  have a  this example of script and i dont understund  why not  work ,  i read help of operator logical , and i suppose i can concatenate it

#include <File.au3>

_testand(@ScriptDir & '\TEMP\test.txt', '<div class="container table-wrap">', '0', '5')

Func _testand($path, $match, $start, $to)
    Select
        Case $start = "" And $to = "" And $match <> ""
            MsgBox(0, '', 'example 1')
        Case $start = "" And $to <> "" And $match <> ""
            MsgBox(0, '', 'example 2')
        Case $start <> "" And $to <> "" And $match = ""
            MsgBox(0, '', 'example 3')
    EndSelect
EndFunc   ;==>_testand

anyone can explame me why i concatenate 2 And  the case not wrk ??

thankz

 

Share this post


Link to post
Share on other sites
pixelsearch

faustf: add this 4th case and see the result :)

Case $start = 0 And $to <> "" And $match <> ""
   MsgBox(0, '', 'example 4')


 

  • Like 1

Share this post


Link to post
Share on other sites
faustf

thankzzzzz :)

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×