你怎么称呼嵌套If ...然后搜索循环? [英] What do you call nested If...Then search loops?

查看:54
本文介绍了你怎么称呼嵌套If ...然后搜索循环?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一些文档,我想描述一个通用的代码结构

用于遍历集合中的所有项目(例如每个文件

in a子目录)同时应用越来越多的限制性过滤器,以便

只有所需的项目可以完全落下。这种方法非常明显且常见,它必须有一个名字。是什么或者至少是什么,

描述它的最佳(短)方式是什么?


For each [file or whatever] in [some collection] ]

如果[测试1]那么

如果[测试2]那么

如果[测试3]那么

[发现]

结束如果

结束如果

结束如果

下一页

I writing some documentation and I want to describe a common code structure
which is used to step through all the items in a collection (e.g. each file
in a subdirectory) while applying more and more restrictive filters so that
only the desired items can fall all the way through. This method is so
obvious and common it must have a name. What is it or at least, what is the
best (short) way to describe it?

For Each [file or whatever] In [some collection]
If [test 1] Then
If [test 2] Then
If [test 3] Then
[Found it]
End If
End If
End If
Next

推荐答案

难看? :-)


我猜它会被称为通过嵌套的短路评估

If Then blocks


谢谢,


Seth Rowe

GY2写道:
Ugly? :-)

I would guess it would be called "Short Circuit Evaluation via Nested
If Then blocks"

Thanks,

Seth Rowe
GY2 wrote:

我写了一些文档我想描述一个通用的代码结构

用于遍历集合中的所有项目(例如,每个文件

在一个子目录中),同时应用越来越多限制性过滤器使

只有所需的物品可以完全落下。这种方法非常明显且常见,它必须有一个名字。是什么或者至少是什么,

描述它的最佳(短)方式是什么?


For each [file or whatever] in [some collection] ]

如果[测试1]那么

如果[测试2]那么

如果[测试3]那么

[发现]

结束如果

结束如果

结束如果

下一个
I writing some documentation and I want to describe a common code structure
which is used to step through all the items in a collection (e.g. each file
in a subdirectory) while applying more and more restrictive filters so that
only the desired items can fall all the way through. This method is so
obvious and common it must have a name. What is it or at least, what is the
best (short) way to describe it?

For Each [file or whatever] In [some collection]
If [test 1] Then
If [test 2] Then
If [test 3] Then
[Found it]
End If
End If
End If
Next


GY2写道:
GY2 wrote:

我写了一些文档,我想描述一个通用的代码结构

用于遍历集合中的所有项目(例如,每个文件

在子目录中),同时应用越来越多的限制性过滤器,以便

只有期望的物品可以一直下降。这种方法非常明显且常见,它必须有一个名字。是什么或者至少是什么,

描述它的最佳(短)方式是什么?


For each [file or whatever] in [some collection] ]

如果[测试1]那么

如果[测试2]那么

如果[测试3]那么

[发现]

结束如果

结束如果

结束如果

下一个
I writing some documentation and I want to describe a common code structure
which is used to step through all the items in a collection (e.g. each file
in a subdirectory) while applying more and more restrictive filters so that
only the desired items can fall all the way through. This method is so
obvious and common it must have a name. What is it or at least, what is the
best (short) way to describe it?

For Each [file or whatever] In [some collection]
If [test 1] Then
If [test 2] Then
If [test 3] Then
[Found it]
End If
End If
End If
Next


>这个方法非常明显且常见,必须有一个名字。什么是或者至少是什么

是描述它的最佳(短)方式?
>This method is so obvious and common it must have a name. What is it or at least, what
is the best (short) way to describe it?



它通常被称为(SELECT)CASE结构。对于那些没有使用CASE的人来说,它被称为Nested-IFs,也称为Bad Programming。


B.

It is usually called a (SELECT) CASE structure. For those who do not
use CASE, it is called "Nested-IFs", and also "Bad Programming".

B.


感谢''嵌套-Ifs''语言。


" Brian Tkatch" < Ma *********** @ ThePentagon.com写了留言

新闻:11 ******************* **@e3g2000cwe.googlegrou ps.com ...
Thanks for the ''Nested-Ifs'' language.

"Brian Tkatch" <Ma***********@ThePentagon.comwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...

GY2写道:
GY2 wrote:

> I写一些文档,我想描述一个通用代码
结构,用于在应用时逐步浏览集合中的所有项目(例如,每个
文件在子目录中)越来越多的限制性过滤器如此
只有所需的物品才能完全落下。这种方法非常明显且常见,必须有一个名称。它是什么或者至少是什么?描述它的最佳(短)方式是什么?

对于每个[文件或其他]在[某些集合]中如果[测试1]那么
如果[测试2]那么
如果[测试3]那么
[找到它]
结束如果
结束如果结束如果
下一个
>I writing some documentation and I want to describe a common code
structure
which is used to step through all the items in a collection (e.g. each
file
in a subdirectory) while applying more and more restrictive filters so
that
only the desired items can fall all the way through. This method is so
obvious and common it must have a name. What is it or at least, what is
the
best (short) way to describe it?

For Each [file or whatever] In [some collection]
If [test 1] Then
If [test 2] Then
If [test 3] Then
[Found it]
End If
End If
End If
Next


>>这种方法非常明显且常见,必须有一个名称。它是什么或至少是什么,
是描述它的最佳(短)方式?
>>This method is so obvious and common it must have a name. What is it or
at least, what
is the best (short) way to describe it?



它通常被称为(SELECT)CASE结构。对于那些没有使用CASE的人来说,它被称为Nested-IFs,也称为Bad Programming。


B.


It is usually called a (SELECT) CASE structure. For those who do not
use CASE, it is called "Nested-IFs", and also "Bad Programming".

B.



这篇关于你怎么称呼嵌套If ...然后搜索循环?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆