lihuixian的个人博客分享 http://blog.sciencenet.cn/u/lihuixian

博文

IDL中经常忘记而需要查阅的内容

已有 2842 次阅读 2013-9-25 15:49 |个人分类:科研工具-IDL|系统分类:科研笔记

我在使用IDL过程中经常需要查阅到某些语法或命令,现记录在此,以供查阅。

 

一、条件语句的格式

·         单分支:
格式:

1.      if 条件  then 语句

2.      if 条件  then  begin

 语句

endif

 

·         双分支:

1.      if 条件  then 语句  else 语句

2.      if 条件  then  begin

语句

endif  else  begin

  语句

endelse  ;注意是endelse不死endif

 

·         多分支:

if 条件  then  begin

语句

endif  else  if 条件  then  begin

语句

endif  else  if 条件  then  begin

语句

………..

endif  else  begin

语句

endelse

 

(以上内容来自网址:http://blog.sina.com.cn/s/blog_702252670100zq8v.html

 

  • 嵌套

     

     

 (以上内容来自网址:http://www.google.com.hk/url?sa=t&rct=j&q=IDL%20if%E8%AF%AD%E5%8F%A5%E5%8F%AF%E4%BB%A5%E5%B5%8C%E5%A5%97%E5%90%97&source=web&cd=2&ved=0CC8QFjAB&url=%68%74%74%70%3a%2f%2f%73%74%61%66%66%2e%75%73%74%63%2e%65%64%75%2e%63%6e%2f%7e%63%63%77%61%6e%67%2f%49%44%4c%5f%63%68%34%2e%70%64%66&ei=wcdDUtKMLKOXigfthoCoBQ&usg=AFQjCNG02HXi34wEGJAGYtmaLOI0vUpk4A&bvm=bv.53217764,d.aGc&cad=rjt)



https://blog.sciencenet.cn/blog-473646-727720.html

上一篇:IDL资源
下一篇:常用Linux命令及常识
收藏 IP: 159.226.171.*| 热度|

2 赵序茅 chenhuansheng

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-19 04:06

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部