Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Brackets
2018-07-31, 19:44
Post: #1
Brackets
Hi,

I would like to do something like this in the config.

Code:
iseq ${need_default} true && ( choose selected || goto cancel )

How can I do that?
If I use

Code:
iseq ${need_default} true && choose selected || goto cancel

than it goes to cancel if need_default is not true.
Find all posts by this user
Quote this message in a reply
2018-07-31, 20:35
Post: #2
RE: Brackets
All you have to do is break it up:

Original
Code:
iseq ${need_default} true && choose selected || goto cancel

Proposed
Code:
iseq ${need_default} true && goto selection || goto cancel
:selection choose selected

"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
2018-08-01, 11:23
Post: #3
RE: Brackets
(2018-07-31 20:35)MultimediaMan Wrote:  All you have to do is break it up:

Original
Code:
iseq ${need_default} true && choose selected || goto cancel

Proposed
Code:
iseq ${need_default} true && goto selection || goto cancel
:selection choose selected

Thank you Smile
Find all posts by this user
Quote this message in a reply
Post Reply 




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