Jump to content

Sign in to follow this  
Guest rkruijer

Condition in print statement

Recommended Posts

Guest rkruijer

Hi,Can I have a condition in a print statement? (L:Ginit,bool) if{ Print TRUE } els{ print FALSE} I know this is not the right syntax but just to give you an idea what I am looking for.Thanks,Roelof

Share this post


Link to post
Share on other sites
Guest rkruijer

>>Can I have a condition in a print statement?>Yes! I found it somewhere. Something like this will do the job.%((P:Simulation rate, number) 1 <)%{if}%((P:Simulation rate, number))%!1.2f!%{else}%((P:Simulation rate, number))%!3.0f!%>Roelof

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...