Display only something
Clash Royale CLAN TAG#URR8PPP
Display only something
can we have the display command with certain conditions ,
For example, if we want to just print things their value are bigger than 7 . in other word how can we have
Display $( x.val> 7)
In general, is it possible to have condition on display command?
1 Answer
1
Yes, you can use the $ condition on a Display statement like in any, e.g., assignment statement:
Scalar x /2/;
Display$(x>3) 'X is greater than 3';
Display$(x>1) 'X is greater than 1';
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.