Aus Das deutschsprachige Scratch-Wiki

K (Links: Added a link.)
K (Touch up.)
Zeile 30: Zeile 30:
 
</scratchblocks>
 
</scratchblocks>
  
<sb>say [hello!] for (2) seconds</sb>
+
<sb>say [hello!] for (2) secs</sb>
  
 
== Links ==
 
== Links ==
 +
 
[[Scratch-Wiki:Scratch Club]]
 
[[Scratch-Wiki:Scratch Club]]
 +
 
[[Scratch-Wiki:Hilfe:Block Plugin Test]]
 
[[Scratch-Wiki:Hilfe:Block Plugin Test]]
  

Version vom 12. September 2016, 14:29 Uhr

Hi! I am ErnieParke, an English Wikian. You may view my English Wiki page here: link

Scratchblocks Test

set [Var A v] to [1]
setze [Var B v] auf [0]
assigna a [Var C v] el valor [-1]
...// Comment

sage <<(Var A) = [1]> und <(Var B) = [0]>> //gibt "true" (wahr) zurück
sage <<(Var A) = [0]> und <(Var B) = [0]>> //gibt "false" (falsch) zurück
sage <<(Var A) = [1]> und <(Var B) = [1]>> //gibt "false" (falsch) zurück
sage <<(Var A) = [0]> und <(Var B) = [1]>> //gibt "false" (falsch) zurück

define dance (speed)
    gehe (10) er-schritt
    borrar // Comentario
    attendre (1) secondes
    répéter indéfiniment
        dire (numero a caso tra (1) e (10)) per (2) secondi
        assigna a [testing v] el valor [0]
    end

if <<(対象) = [0]> or <((対象) * (1)) = (対象)>> then
    
set [返り値 v] to [数字]
else
set [返り値 v] to [数字ではない]
end

say [hello!] for (2) secs

Links

Scratch-Wiki:Scratch Club

Scratch-Wiki:Hilfe:Block Plugin Test