Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more


When people and organizations share information in the professional world, they use non-disclosure agreements to protect their ideas. While sharing is important in computer science, sharing an idea before you develop or use it might lead someone else to use it before you do.

In this add-on, you’ll ask the audience to agree to not share any of the ideas in your story with other people. This is not a legally binding agreement, but the code you’ll use to create it is similar to the code that a company might use on its website.

To start, select the sprite narrating your story. Use some "say for 2 seconds blocks" to write a disclaimer. In this example, the sprite says, “The ideas and opinions expressed in this project are owned by csf123. Sharing the ideas in this project is strictly prohibited.”

Now that you have a disclaimer, ask the user to agree not to share your idea. Click sensing and drag out an ask block. Add your question text, like, “Do you agree not to share this innovation with other people?” Click this block stack to test it.

Great, the sprite says the disclaimer, asks the question, and a prompt pops up where users can type their answer. If the answer is yes, then the program should run normally, if they type anything else, the program should stop.

Drag out an if/else block. As the condition, put an equals operator, the answer variable from sensing, and type “yes” as the other value.

This now reads, if the answer equals yes, then...

If the answer is yes, the program should run normally. Add this code below the green flag.

Place the "broadcast" and "wait" blocks that are already in your project in the “then” portion of the block. Click the flag to test this.

Enter “yes” as the answer.

The program works, great! Next, add a "say" block to the "else."

If people don’t say yes, the program can respond with something like “Ok, thanks for your honesty!”

Test this now with something like “no.”

The program says the message, then does not show the innovation! Great. Now it’s your turn to protect your innovation: Add a disclaimer using "say for 2 seconds" blocks.

Ask the user to keep your ideas confidential with an “ask” block Decide what to do based on the users’ answer with an "if/else" block, an "equals" operator, and an "answer" block.

Scegli un’estensione
Cambia scena
Cambia l'ambientazione in ogni parte della storia.
Modernizza il design della tua invenzione
Personalizza il costume dello sprite come desideri.
Fuochi d'artificio
Aggiungi nella valigetta uno sprite Fuochi d'artificio, poi inseriscilo nel programma e decidi quando eseguire il codice.
Proteggi la tua idea
Chiedi al pubblico di non condividere con nessuno le idee contenute nella tua storia.
Alza il volume
Aggiungi un brano musicale nella storia e imposta volumi diversi nelle varie parti.
Rendi interattivo il finale della presentazione ponendo una domanda al pubblico e rispondendo di conseguenza.
arrow_backward Indietro
Avanti arrow_forward
1. Scegli i componenti aggiuntivi e crea!