{{ message }}
Replies: 1 comment 1 reply
|
Do you mean something like In file "ifelse.ps1" Then in usage Or replacing my last line in the file with That kind of thing? I must admit I was thinking about PowerShell without the actual ternary operator, I prefer the type ScriptBlock to refer to some code. Is your issue that passing around a function does not execute it? Think of it as a delegate, a script block or a callback. You are passing a reference to the function, not the result of it's execution. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How do to call a function without explicitly invoking it?
I'm interested in the shortest syntax.
All reactions