当前位置:网站首页>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 .

边栏推荐
猜你喜欢

CSDN 上传图片取消自动加水印的方法

Daily question 1: force deduction: 225: realize stack with queue

How to confirm the storage mode of the current system by program?

树的先序中序后序遍历

2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9

NPDP certification | how do product managers communicate across functions / teams?

NPDP认证|产品经理如何跨职能/跨团队沟通?

LeetCode 练习——剑指 Offer 26. 树的子结构

机试刷题1

Sword finger offer question brushing record 1
随机推荐
HDU 5077 NAND (violent tabulation)
Rust knowledge mind map XMIND
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
【无标题】
云原生技术--- 容器知识点
three. JS gorgeous bubble effect
Daily question 1: force deduction: 225: realize stack with queue
rust知识思维导图xmind
return 关键字
Aardio - 封装库时批量处理属性与回调函数的方法
Pit encountered by handwritten ABA
剪映+json解析将视频中的声音转换成文本
Mise en place d'un environnement de développement OP - tee basé sur qemuv8
Config:invalid signature solution and troubleshooting details
BasicVSR_PlusPlus-master测试视频、图片
Traversal of a tree in first order, middle order, and then order
CocosCreator+TypeScripts自己写一个对象池
Leetcode exercise - Sword finger offer 26 Substructure of tree
Web APIs DOM time object
leetcode:面试题 17.24. 子矩阵最大累加和(待研究)