当前位置:网站首页>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 .
边栏推荐
猜你喜欢
Improving Multimodal Accuracy Through Modality Pre-training and Attention
CSDN 上传图片取消自动加水印的方法
The SQL response is slow. What are your troubleshooting ideas?
Aardio - 利用customPlus库+plus构造一个多按钮组件
在IPv6中 链路本地地址的优势
金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
手写ABA遇到的坑
机试刷题1
Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing
Aardio - 不声明直接传float数值的方法
随机推荐
Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"
【雅思口语】安娜口语学习记录part1
UVa 11732 – strcmp() Anyone?
Project duplicate template
Is there any requirement for the value after the case keyword?
剑指offer刷题记录1
QT信号和槽
rust知识思维导图xmind
【踩坑合辑】Attempting to deserialize object on CUDA device+buff/cache占用过高+pad_sequence
OpenSSL: a full-featured toolkit for TLS and SSL protocols, and a general encryption library
The ceiling of MySQL tutorial. Collect it and take your time
Clip +json parsing converts the sound in the video into text
Self made j-flash burning tool -- QT calls jlinkarm DLL mode
leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
hdu 5077 NAND(暴力打表)
2014阿里巴巴web前实习生项目分析(1)
Mise en place d'un environnement de développement OP - tee basé sur qemuv8
General implementation and encapsulation of go diversified timing tasks
Aardio - does not declare the method of directly passing float values
剪映+json解析将视频中的声音转换成文本