Learn the basic structure and syntax rules that make vScript both expressive and minimal.
// Basic command formvS.commandName(params);// With targeting and taggingvS.notify@design#update("ready");// Soft executionvS.plan.
All vScript commands follow the pattern: vS.commandName
followed by optional parameters, targeting, and punctuation modifiers.
vS.inject("Hello, world");vS.inject{Multi-lineraw content};
vS.setState(level: 42);vS.unlock(force: true);vS.adjust(ratio: 0.75);
vS.process([1, 2, 3]);vS.configure({ mode: "creative", level: 3 });
Use lowerCamelCase for commands and parameter keys
vS.setState(currentMode: "explorer");
UPPER_SNAKE_CASE allowed for constants
vS.configure(MAX_RETRIES: 5);
// Single line commentvS.enter(mode: "creative");/* Multi-line comment for longer explanations */vS.inject("content");
Whitespace is significant for readability but not semantic. Commands can be chained or separated for clarity.
// Chained executionvS.unlock(); vS.enter(); vS.setState("wild"); vS.run(full);// Separated for clarityvS.unlock();vS.enter(mode: "creative");vS.setState("focused");vS.run(full);