<p>you define your <code>Datum</code> in your smart contract, so you should show us how your datum is defined in order for us to help you</p>
<p>also if you are using the low-level <code>BuiltinData</code> ( the UPLC version of <code>Data</code>) keep in mind it is so defined in the <a href="https://playground.plutus.iohkdev.io/doc/haddock/plutus-tx/html/PlutusTx.html#t:BuiltinData" rel="nofollow noreferrer">PlutusTx module documentation</a></p>
<pre><code>data Data 
    =
    | Constr Integer [Data]  
    | Map [(Data, Data)]     
    | List [Data]    
    | I Integer  
    | B ByteString   
</code></pre>
<p>in this case it strictly depends by the transaction that has been set to the smart contract that created the UTxO you are spending (which is from where the <code>Datum</code> comes).</p>
<p>Also, I strongly suggest you to learn the Haskell syntax before diving into smart contracts, here's a <a href="https://www.youtube.com/playlist?list=PLckjwRWdD3JToFKE3qzVEI-VhbzVnoJui" rel="nofollow noreferrer">youtube playlist that helped me</a></p>

CC BY-SA 4.0
2022-06-29T21:41:22.543Z
2022-06-29T21:41:22.543Z
Michele Nuzzi
<p>Check out the free haskell resources:</p>
<p>You may want to learn about record syntax probably, among other things</p>
<p>Haskell and Crypto - Mongolia course by IOHK (Lars and Andres Löh)
<a href="https://github.com/iohkedu/haskell-2020" rel="nofollow noreferrer">https://github.com/iohkedu/haskell-2020</a></p>
<p>Learn you a Haskell free ebook (really good for quick reference)
Learnyouahaskell.com</p>

CC BY-SA 4.0
2022-01-30T18:27:53.330Z
2022-01-30T18:27:53.330Z
LexTRX
<p>So I am storing multiple values in my datum but I don't know how to read them in Plutus code.
Also I am very new to Haskell so explain it in a simple way please. </p>

CC BY-SA 4.0
2021-10-07T05:07:01.103Z
Your question is not clear enough. It depends on how your datum is stored. Show relevant code. Not all your code, just the relevant part, where your datum is defined and where you are trying to use it.
Fuzzy Logic
<plutus>
How do I parse multiple values stored in datum in Plutus
# How do I parse multiple values stored in datum in Plutus

(Asked by: username_0 on 2021-10-04)

So I am storing multiple values in my datum but I don't know how to read them in Plutus code.
Also I am very new to Haskell so explain it in a simple way please.

**Tags:** plutus
> **Comments:**
> **username_1**: Your question is not clear enough. It depends on how your datum is stored. Show relevant code. Not all your code, just the relevant part, where your datum is defined and where you are trying to use it.  

---

## 2 answers

### Answer by username_2 on 2022-06-29. Score: 0

you define your Datum in your smart contract, so you should show us how your datum is defined in order for us to help you
also if you are using the low-level BuiltinData ( the UPLC version of Data) keep in mind it is so defined in the PlutusTx module documentation
data Data 
    =
    | Constr Integer [Data]  
    | Map [(Data, Data)]     
    | List [Data]    
    | I Integer  
    | B ByteString   

in this case it strictly depends by the transaction that has been set to the smart contract that created the UTxO you are spending (which is from where the Datum comes).
Also, I strongly suggest you to learn the Haskell syntax before diving into smart contracts, here's a youtube playlist that helped me


---

### Answer by username_3 on 2022-01-30. Score: 0

Check out the free haskell resources:

You may want to learn about record syntax probably, among other things

Haskell and Crypto - Mongolia course by IOHK (Lars and Andres Löh)
<https://github.com/iohkedu/haskell-2020>

Learn you a Haskell free ebook (really good for quick reference)
Learnyouahaskell.com


---

