Jump to content

Comparing string in variable


NovKit
 Share

Go to solution Solved by Danp2,

Recommended Posts

  • Solution
Quote

    ElseIf $c == "reboot" or "restart" Then

This isn't doing what you think. You would need something like this --

ElseIf $c == "reboot" or $c == "restart" Then

The same goes for your Google Chrome comparison. Also, be aware that == is case sensitive, so "reboot" would match but "Reboot" would not.

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...