3 votes

Passing negative parameters to a wolframscript

I have found the solution myself. In fact it is similar to the other answer by Syed. I have found that ( and ) have a special ...
mattiav27's user avatar
  • 6,434
2 votes

Passing negative parameters to a wolframscript

With a minor change to the script: arg=ToExpression/@Most@Rest@$ScriptCommandLine; file=Last[$ScriptCommandLine]; Export[file,arg]; Use: ...
Syed's user avatar
  • 32.1k
1 vote
Accepted

Is there a way to make WolframScript give outputs as a single line?

You should use InputForm: ...
Domen's user avatar
  • 15.5k
1 vote
Accepted

Way to stop reading script file based on conditions, without an "if" block wrapping the entire file

A more WL-like way of doing this, would be to write a function that makes the definitions and put a condition on that function. Something like: ...
Sjoerd Smit's user avatar
  • 20.3k

Only top scored, non community-wiki answers of a minimum length are eligible