# Oppgave 4: Stein, saks, papir (betinget handling)

I denne oppgaven skal vi vis en av tre ulike ikoner når micro:bit'en ristes.&#x20;

### Program

{% embed url="<https://makecode.microbit.org/_iu1XMpDeuAPc>" %}
Stein, saks, papir
{% endembed %}

* Blokken "hvis ..." finner du under menyen "Logikk"
* Sammenligningsblokken finner du under menyen "Logikk (Comparison)" og settes inn i "hvis ..."-blokken som visst i programmet
* Deretter kan du hente variabelen "resultat" under "Variabler"
* Sett inn blokken "vis ikon..."
* Kopier "hvis..."-blokken to ganger og gjør endringer som i programmet over

### Prøv selv

1. Kontroller at alle ikonene blir visst
2. Endre programmet slik at det kan brukes til "Stein, saks, papir"
3. Last opp på to micro:bit'er og utfordre en venn


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://oppgaver.n00b.no/micro-bit/kom-i-gang-med-micro-bit/oppgave-4-stein-saks-papir-betinget-handling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
