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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...