iPXE discussion forum
Brackets - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Brackets (/showthread.php?tid=12657)



Brackets - kovacsadam07 - 2018-07-31 19:44

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.


RE: Brackets - MultimediaMan - 2018-07-31 20:35

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



RE: Brackets - kovacsadam07 - 2018-08-01 11:23

(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