当前位置:网站首页>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 .
边栏推荐
- Installation and use of labelimg
- ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
- Sword finger offer question brushing record 1
- Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
- Leetcode exercise - Sword finger offer 26 Substructure of tree
- Web APIs DOM 时间对象
- 自定义 swap 函数
- 机试刷题1
- View
- volatile关键字
猜你喜欢
Leetcode exercise - Sword finger offer 26 Substructure of tree
Rust knowledge mind map XMIND
Advantages of link local address in IPv6
NPDP certification | how do product managers communicate across functions / teams?
Web APIs DOM time object
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
Mysql database basic operations DML
剑指offer刷题记录1
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
视图(view)
随机推荐
Aardio - construct a multi button component with customplus library +plus
剑指offer刷题记录1
Project duplicate template
NPM cannot install sharp
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
Aardio - 不声明直接传float数值的方法
Is there any requirement for the value after the case keyword?
Extern keyword
rust知识思维导图xmind
[leetcode] 19. Delete the penultimate node of the linked list
What are the specific steps and schedule of IELTS speaking?
Leetcode exercise - Sword finger offer 26 Substructure of tree
空结构体多大?
Pit encountered by handwritten ABA
General implementation and encapsulation of go diversified timing tasks
On the problems of born charge and non analytical correction in phonon and heat transport calculations
第十九章 使用工作队列管理器(二)
【LeetCode】19、 删除链表的倒数第 N 个结点
CSDN 上传图片取消自动加水印的方法
如何用程序确认当前系统的存储模式?