淘宝官方店     推荐课程     在线工具     联系方式     关于我们  
 
 

微波射频仿真设计   Ansoft Designer 中文培训教程   |   HFSS视频培训教程套装

 

Agilent ADS 视频培训教程   |   CST微波工作室视频教程   |   AWR Microwave Office

          首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档


Ansoft Designer / Ansys Designer 在线帮助文档:


Designer File Formats >
   Nexxim Netlist Format >
       Expressions >
           Conditional Assignments               


Conditional Assignments

A conditional assignment uses one of the following formats:

variable = '(cond_expr)?true_value:false_value'

variable = 'if(cond_expr,true_value,false_value)'

The quotes are optional, but are recommended for clarity. The conditional expression cond_expr is any expression that evaluates to a Boolean value. When the conditional expression is true, the variable is assigned the true_value. When the condition is false, the variable is assigned the false_value.

Examples:

A = '(X>Y) ? 0 : 1'

A = 'if(X>Y,0,1)'

In both examples, when the conditional expression X>Y is true, variable A is set to 0, and when the conditional expression is false, A is set to 1.




HFSS视频教学培训教程 ADS2011视频培训教程 CST微波工作室教程 Ansoft Designer 教程

                HFSS视频教程                                      ADS视频教程                               CST视频教程                           Ansoft Designer 中文教程


 

      Copyright © 2006 - 2013   微波EDA网, All Rights Reserved    业务联系:mweda@163.com