# #Rechnet 111(BIN/2) in das System(DEZ/10) um. #- run s@dcalc "def:111|2|10" dcalc: type: task speed: 0t script: - define input_value "" - define input_system "" - define output_system "" ############ #Error-Check ############ - if !matches number || !matches number || !matches number { - narrate "<&4>ERROR Input not a number <&6>[] <&4>to <&6> <&4>is invalid!" - queue clear } - if ]].size> > 0 { - narrate "<&4>ERROR Input <&6> <&4>is not a valid <&6>-System <&4>number." - queue clear } - if > 10 { - narrate "<&4>ERROR Systems above 10 aren't supported yet." - queue clear } ########################## #1. define Worth ########################## #1 * 2^0 = 1 #1 * 2^1 = 2 #1 * 2^2 = 4 - define input_worth 0 - foreach { - define input_worth "]>]>]>" } - narrate ""