Jump to content

confusion how to use operator logic And


Recommended Posts

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

 

Link to comment
Share on other sites

  • Developers

as usual:

  • Post an example we can run and demonstrates your "issue".
  • Care to share which part doesn't work and what you are expecting?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...