diff --git a/src/core/node.jl b/src/core/node.jl index 7c7b96e..bf444f6 100644 --- a/src/core/node.jl +++ b/src/core/node.jl @@ -233,7 +233,7 @@ function _after_construct_variables!(node::Node) if node.state_final isa Vector @critical "[build] The final value of a Node must be scalar." component = node.name end - if node.state_cyclic !== :disabled && !_isempty(node.state_initial) && !_isempty(node.state_initial) + if node.state_cyclic !== :disabled && !_isempty(node.state_initial) && !_isempty(node.state_final) @critical( "[build] `state_cyclic` has to be disabled if both `state_initial` and `state_final` are set.", component = node.name