当前位置:网站首页>UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
UE4蓝图学习篇(四)--流程控制ForLoop和WhileLoop
2022-07-06 14:48:00 【卡西莫多说】
今天给大家介绍另外的流程控制节点。
流程控制-ForLoop
ForLoop是利用计数器所具备的计数循环次数功能来进行处理的。循环从第一个索引值进来,然后依次增加1,达到最后一个索引的时候循环结束。
First Index:第一个索引值,Last Index:最后一个索引值,Loop Body:循环体
Index:当前索引,Completed:循环结束后执行的操作


数组与ForEachLoop
数组可以对多个值进行集中管理,处理保管于数组中的所有数据时会用到循环。
添加一个数组,并给它添加一些元素
Array连接的时一个建立的数组,LoopBody是循环体,ArrayElement是数组元素,ArrayIndex是数组索引,从0开始,Compieted是完成后的操作。


例子:求数组中元素的平均值


whileLoop
whileLoop需要一个bool值进行判断是否进入到循环中,当bool值为false的时候退出循环。
例子:判断一个数是否是质数
除了1和它本身,不可以被其他书数整除
先判断num数值是否和counter相等,如果为false,再去判断%counter是否为0,如果能被counter整除,它就不是质数,counter每次加1 。

边栏推荐
- Hardware development notes (10): basic process of hardware development, making a USB to RS232 module (9): create ch340g/max232 package library sop-16 and associate principle primitive devices
- Classic sql50 questions
- NPDP认证|产品经理如何跨职能/跨团队沟通?
- pytorch_ Yolox pruning [with code]
- 硬件開發筆記(十): 硬件開發基本流程,制作一個USB轉RS232的模塊(九):創建CH340G/MAX232封裝庫sop-16並關聯原理圖元器件
- C#实现水晶报表绑定数据并实现打印4-条形码
- ResNet-RS:谷歌领衔调优ResNet,性能全面超越EfficientNet系列 | 2021 arxiv
- pytorch_YOLOX剪枝【附代码】
- 做接口测试都测什么?有哪些通用测试点?
- Learn the principle of database kernel from Oracle log parsing
猜你喜欢

Seata聚合 AT、TCC、SAGA 、 XA事务模式打造一站式的分布式事务解决方案

Notes de développement du matériel (10): flux de base du développement du matériel, fabrication d'un module USB à RS232 (9): création de la Bibliothèque d'emballage ch340g / max232 SOP - 16 et Associa
![[sciter]: encapsulate the notification bar component based on sciter](/img/08/a3dd409261054052291e99dd28af11.png)
[sciter]: encapsulate the notification bar component based on sciter

重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障

Memorabilia of domestic database in June 2022 - ink Sky Wheel

0 basic learning C language - digital tube

Management background --4, delete classification

Data processing skills (7): MATLAB reads the data in the text file TXT with mixed digital strings

基于 QEMUv8 搭建 OP-TEE 开发环境

LeetCode刷题(十一)——顺序刷题51至55
随机推荐
ResNet-RS:谷歌领衔调优ResNet,性能全面超越EfficientNet系列 | 2021 arxiv
What are the interface tests? What are the general test points?
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
Seata聚合 AT、TCC、SAGA 、 XA事务模式打造一站式的分布式事务解决方案
如何用程序确认当前系统的存储模式?
Spatial domain and frequency domain image compression of images
Installation and use of labelimg
NetXpert XG2帮您解决“布线安装与维护”难题
(十八)LCD1602实验
手写ABA遇到的坑
【数字IC手撕代码】Verilog无毛刺时钟切换电路|题目|原理|设计|仿真
Management background --5, sub classification
CCNA-思科网络 EIGRP协议
Assembly and Interface Technology Experiment 6 - ADDA conversion experiment, AD acquisition system in interrupt mode
Assembly and interface technology experiment 5-8259 interrupt experiment
2022-07-05 使用tpcc对stonedb进行子查询测试
Aardio - 不声明直接传float数值的方法
C#实现水晶报表绑定数据并实现打印4-条形码
GD32F4XX串口接收中断和闲时中断配置
Should novice programmers memorize code?