Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
support CMD characters
#1
Hi,

It would be much more convenient if QM3 could support CMD characters

CMD symbols, used only when testing in the QM3 editor, Invalid when passing arguments through the command line
#if !CMD
#endif


Linqpad supports this format

C# code:
void Main(string[] args) {
#if !CMD
    args = new[] {
        @"C:\Users\Administrator\Desktop\hello.txt",
        "hello, world!"
    };
#endif
    
    string file = args[0];
    string text = args[1];
    File.WriteAllText(file, text);
}
#2
Maybe. Currently can be used

C# code:
if (!args.Any()) {
    args = new[] {
        @"C:\Users\Administrator\Desktop\hello.txt",
        "hello, world!"
    };
}
#3
In next version:

C# code:
if (script.testing) {
    // ...
}
#4
@Gintaras 
Very nice feature, Thank you for your hard work!


Forum Jump:


Users browsing this thread: 2 Guest(s)