Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Block How-To #58

Open
Jmos opened this issue Oct 5, 2020 · 3 comments
Open

Command Block How-To #58

Jmos opened this issue Oct 5, 2020 · 3 comments

Comments

@Jmos
Copy link

Jmos commented Oct 5, 2020

How to script
IF THEN [ ELSE [ENDIF]]
( ) not implemented ?

@Jmos
Copy link
Author

Jmos commented Oct 5, 2020

How to script
IF condition THEN commands [ ELSE commands [ENDIF]]
( ) command block not implemented ?

@malxau
Copy link
Owner

malxau commented Oct 17, 2020

Firstly, sorry for the delay in replying.

When writing Yori I didn't prioritize scripting features, since it seemed to me like Powershell is a more capable scripting environment, and CMD is more ubiquitous. I haven't implemented the ( ) block logic. Looking at how CMD did this, it will require major changes to the parser to implement, in order to be able to evaluate things like (foo1 && foo2 && foo3) || bar . The if command needs to be able to understand not just argc/argv arguments, but a more structured form of data so that it can know what to execute. I don't think I can do these changes in 1.3 without introducing far too many bugs.

Nonetheless, I'll keep this in mind for a future release. I'd wanted to move a lot of this logic around anyway so ymake can use it, and knowing that it needs to be more capable and if needs to use it as well is good to know.

@Jmos
Copy link
Author

Jmos commented Oct 24, 2020

thanx a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants