Development Documentation
  • Home
  • 🤝Contribution
    • Main
  • 🧰Toolbox
    • Model
    • Blocks
      • Guidelines
      • Discord
  • 2 v2
    • Main
Powered by GitBook
On this page
  • Drop-downs
  • Export

Was this helpful?

Edit on GitHub
  1. Toolbox
  2. Blocks

Guidelines

Drop-downs

Export

Problematic Behavior

Though you can put the export code in the drop-down data array, it couldn't contain newlines (including ) without causing the drop-down option to not be saved correctly.

Alternative

Use

switch (dropdown_value) {
  case (value1) :
    // first multiline export code
    break;
  case (value2) :
    // second multiline export code
    break;
  default :
    // error: missing export code
}
PreviousBlocksNextDiscord

Last updated 2 years ago

Was this helpful?

🧰