10.07.2015 Views

Opcode PatchTalk User Guide - House of Synth

Opcode PatchTalk User Guide - House of Synth

Opcode PatchTalk User Guide - House of Synth

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PatchTalk</strong> Control StructuresControl Structures are <strong>PatchTalk</strong> commands that direct Galaxy how tointerpret other <strong>PatchTalk</strong> statements. They allow you to chooseamong two or more groups <strong>of</strong> statements and/or repeatedly execute agroup <strong>of</strong> statements. Since they contain other commands, these statementsmay take up several lines in a script.IfIf Condition ThenCommandsElse --optionalEndIfCommandsIf the test indicated by Condition is true, then the first set <strong>of</strong> Commandsis run by Galaxy. Otherwise the second set <strong>of</strong> Commands is run.Note that the second set <strong>of</strong> commands is optional and, if not provided,no commands will be run if the condition is false.Note that the word then is optional.If PatchNumber < 64 check if the number is lessthan 64Put “A” into BankLetter if so, then we’re in bank AElse else the number is greaterthan or equal to 64Put “B” into BankLetter and then we’re in bank BEndIf finish the IfIf x=16; put 0 into x;EndIfone line version <strong>of</strong> “if xis 16 then set it to zero”<strong>Opcode</strong> Publication 1950906 - 17 - <strong>PatchTalk</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!