<p>The answer is yes - qualified. It will eventually depend on what you have in mind.</p>
<p>The code that <em><strong>only runs off-chain</strong></em> is limited by the capabilities of Haskell.</p>
<p>But the part of the off-chain code that is <em><strong>executed on-chain</strong></em> (validator) is subject to the limitations of the Plutus Core language which is what runs on-chain. However, I don't know what they are in this case.</p>

CC BY-SA 4.0
2021-08-02T14:38:45.720Z
2021-08-02T14:38:45.720Z
vcwebco
<p>I am trying to implement a nested state machine with plutus and I'm wondering if it is even a possibility.</p>

CC BY-SA 4.0
2021-07-03T20:02:24.500Z
What have you tried?
jnprogrammer
CC BY-SA 4.0
2021-07-04T08:41:15.537Z
You can search the web for "nested state machine Haskell" and you should find quite a lot of information. Translating Haskell to Plutus should not be too difficult.
eddex
<plutus>
Implementing a nested state machine
# Implementing a nested state machine

(Asked by: username_0 on 2021-07-03)

I am trying to implement a nested state machine with plutus and I'm wondering if it is even a possibility.

**Tags:** plutus
> **Comments:**
> **username_1**: What have you tried?  
> **username_2**: You can search the web for "nested state machine Haskell" and you should find quite a lot of information. Translating Haskell to Plutus should not be too difficult.  

---

## 1 answers

### Answer by username_3 on 2021-08-02. Score: 1

The answer is yes - qualified. It will eventually depend on what you have in mind.

The code that ***only runs off-chain*** is limited by the capabilities of Haskell.

But the part of the off-chain code that is ***executed on-chain*** (validator) is subject to the limitations of the Plutus Core language which is what runs on-chain. However, I don't know what they are in this case.


---

