Lua 的If Else用法
2012-12-14 11:02
435 查看
function GetValue() local a=channel.GetChild(0):GetValue() local b=channel.GetChild(1):GetValue() local c=channel.GetChild(2):GetValue() local d=channel.GetChild(3):GetValue() local val=0 if c<1 and a<b then val=0 elseif c>=d and a>b then val=0 else val=a-b end return val end
相关文章推荐
- sql声明变量,及if -else语句、while语句的用法
- 看来需要继续研究结算中心账户客商触发器了|OK||更新if else用法|
- shell if else case用法DEMO
- shell Learning [if elif else 的用法]
- PHP的if...else语句的用法
- CASE函数用法:相当于switch..case:,能够实现等值判断,也可以做范围判断 相当于if...else
- if……elseif……else……end if 的用法
- #ifdef,#else,#endif,#if用法详解(转)
- java的if-else和while用法
- oracle存储过程中的if...elseif...else用法
- JS中的if和else的用法以及基础语法
- Python之Lambda表达式和if not...else用法
- oracle存储过程中的if...elseif...else用法
- #ifdef,#else,#endif,#if用法详解
- if....else的基本用法
- if else的用法
- #ifdef,#else,#endif,#if用法详解
- go语言if/else语句简单用法示例
- 详解C++编程中的条件判断语句if-else与switch的用法
- R中ifelse、which、%in%的用法