Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question on iseq
2012-11-14, 09:08 (This post was last modified: 2012-11-14 09:08 by MultimediaMan.)
Post: #1
Question on iseq
Consider:

Code:
set ${some-thing} Some Device
echo ${some-thing}

iseq ${some-thing} Some Device && goto do-this-thing || goto do-not-do-this-thing

I get a syntax error from iseq: it doesn't appear that iseq can handle whitespaces, even though the variable can (and does). I've tried single quotes and double qoutes to encapsulate the whitespace: is there something else I can use?

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
2012-11-14, 10:01
Post: #2
RE: Question on iseq
No, iseq does not support any quotes what so ever. You can work around it by setting the thing you want to compare against in another variable and do iseq ${var1} ${var2} && goto equal || goto not-equal
Visit this user's website Find all posts by this user
Quote this message in a reply
2012-11-14, 14:04
Post: #3
RE: Question on iseq
So something like this:
Code:
set ${some-thing} Some Device
echo ${some-thing}

set ${something-else} Some Device
echo ${someting-else}

iseq ${some-thing} ${something-else} && goto do-this-thing || goto do-not-do-this-thing

Cheers!

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)