Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

Sample BlackRabbit Script

Sample BlackRabbit Script

Here is some very simple BlackRabbit Script code that is used to perform multiple tasks. Can you figure out from the simple commands what it does at each point?

BlackRabbit Script
//Copyright JBALFOURDTP
//13/10/2014
//BlackRabbit Script version: 2.2.2.467 
function main()
    //Main method goes here
    //Case insensitive welcome
    hey -> Welcome to my application
    name -> Jamie
    Name -> Balfour
    
    echo ("Hello")

    get_yes_no("hey name "Name". Press Yes to continue the program.")

    %result -> bb.*return

    get_yes_no("Result is "'%result')

    if(%result == "Yes")
        output("That is the desired result")
    else
        output("That is incorrect")
    endif
    
    $i = 0
    $y = $i
    
    output($y)
    
    while($i < 5)
        $i++
        call (message)
    endwhile

endfunction

function message()
    output("i is" $i "and y is" $y)
    $y = add($y, 5)
    $z = multiply($y, $i)
endfunction
BlackRabbit Script is no longer maintained and has been replaced by the Zenith Parsing Engine and the ZenLang.
Posted by jamiebalfour04 in Software
brs
sample
example
test
showcase
Comments
Powered by DASH 2.0