Jump to content
Sign in to follow this  
tudor.timi

C++ if_then_else nesting

Recommended Posts

Is it possible to nest if_then_else statements in PSS/C++? The C++ declaration of it is:

class if_then_else : public detail::SharedExpr {
public:
  /// Declare if-then-else activity statement
  if_then_else (const detail::AlgebExpr& cond,
                const detail::ActivityStmt& true_expr,
                const detail::ActivityStmt& false_expr
  );
};

Is an if_then_else compatible with a detail::ActivityStmt?

Share this post


Link to post
Share on other sites

From PSWG:

Yes, it is possible to nest 'if_then_else' statements in PSS/C++.  Secondly, yes an 'if_then_else' is compatible with a C++ 'detail::ActivityStmt',  as it is an 'activity'.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×