BUCL.io / count
Zählt die Anzahl der Parameter.
Beispiel
{c} count "eins" "zwei"
{c} count "eins" "zwei"
Quellcode
#This function is native code.
#This function is native code.
Zählt die Anzahl der Parameter.
{c} count "eins" "zwei"
#This function is native code.
#Ich bin ein Kommentar
length
length "Hallo Welt."
{var1} length "Hallo Welt."{var2} = "Länge ist: {var1}"
{variable} = "Text1" "Text2"
{r} random 0 10
if "Text" = "Text"{res} = "Text ist gleich Text"
if "Text" = "Anderes"{res} = "Text ist gleich Text"elseif "Text" = "Text"{res} = "Irgendwas anderes"
if "Text" = "Anderes"{res} = "Text ist gleich Text"else{res} = "Irgendwas anderes"
{r} repeat 5{res} = "{r/index} von 5 mal Hallo!"
{e} each "Hans" "Peter" "Marie"{res} = "Hallo {e/value}!"
{res} explode "," "one,two,three"
{res} implode "," "one" "two" "three"
{res} maxlength "ha" "llo"
{res} slice 1 -1 "cut" "use" "cut"
{res} substr 0 3 "AAAaaa"
{res} writefile "test.txt" "Sample content"