当前位置:网站首页>UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
2022-07-06 22:42:00 【Casimodo said】
Today, I will introduce another process control node .
Process control -ForLoop
ForLoop It is processed by using the counting cycle function of the counter . Loop in from the first index value , Then add... In turn 1, The loop ends when the last index is reached .
First Index: The first index value ,Last Index: Last index value ,Loop Body: The loop body
Index: Current index ,Completed: Actions performed after the loop ends


An array with the ForEachLoop
Arrays can centrally manage multiple values , A loop is used to process all the data stored in the array .
Add an array , And add some elements to it
Array When connected, an established array ,LoopBody It's a circular body ,ArrayElement It's an array element ,ArrayIndex Is the array index , from 0 Start ,Compieted Is the operation after completion .


Example : Average the elements in an array


whileLoop
whileLoop Need one bool Value to determine whether it enters the loop , When bool The value is false When you exit the loop .
Example : Judge whether a number is a prime number
except 1 And itself , It can't be divided by other books
First judge num Whether the value is and counter equal , If false, Then judge %counter Is it 0, If it can be counter to be divisible by , It's not prime ,counter Every time add 1 .

边栏推荐
- BasicVSR_ Plusplus master test videos and pictures
- That's why you can't understand recursion
- Plafond du tutoriel MySQL, bien collecté, regardez lentement
- Const keyword
- Matlab tips (27) grey prediction
- [leetcode] 19. Delete the penultimate node of the linked list
- Void keyword
- Typescript get function parameter type
- Comparison between variable and "zero value"
- 如何用程序确认当前系统的存储模式?
猜你喜欢

Custom swap function

Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing

leetcode:面试题 17.24. 子矩阵最大累加和(待研究)

uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)

Should novice programmers memorize code?

MATLAB小技巧(27)灰色预测

Aardio - does not declare the method of directly passing float values

Traversal of a tree in first order, middle order, and then order

pytorch_YOLOX剪枝【附代码】

NPDP认证|产品经理如何跨职能/跨团队沟通?
随机推荐
MySQL约束的分类、作用及用法
Typescript get function parameter type
【LeetCode】19、 删除链表的倒数第 N 个结点
Extern keyword
TypeScript获取函数参数类型
Chapter 19 using work queue manager (2)
Return keyword
void关键字
【编译原理】做了一半的LR(0)分析器
poj 1094 Sorting It All Out (拓扑排序)
BasicVSR_PlusPlus-master测试视频、图片
Aardio - 不声明直接传float数值的方法
AdaViT——自适应选择计算结构的动态网络
Improving Multimodal Accuracy Through Modality Pre-training and Attention
雅思口语的具体步骤和时间安排是什么样的?
POJ 1258 Agri-Net
General implementation and encapsulation of go diversified timing tasks
Custom swap function
Web APIs DOM 时间对象
动作捕捉用于蛇运动分析及蛇形机器人开发