If loops are about doing something over and over, functions are about doing something on demand — whenever you call for it. They're one of the most important building blocks in Verse, so let's break them down in plain English, with real code you can actually picture running. What's a Function, Really? Think of a function like a vending machine. You put something in (optional), you press a button (you "call" it), and it gives you something back out (optional). You don't need to know exactly how the inside of the machine works every time — you just need to know what to put in and what you'll get out. In programming terms: a function is a named, reusable chunk of code that you can run whenever you need it, instead of retyping the same logic over and over. The Basic Shape of a Verse Function Here's the simplest possible function in Verse: SayHello() : void = Print("Hello!") Let's break that down piece by piece: SayHello — this...
If you're just getting started with Verse (the programming language behind Fortnite Creative and UEFN), loops are one of the first big hurdles you'll run into. The good news? Once you get the hang of the two main loop types, they'll click fast. Let's break it down like you've never written a line of code before. What's a Loop, Anyway? A loop is just a way of telling the computer "do this thing over and over" instead of writing the same line of code a hundred times. Verse gives you two main tools for this: loop and for . They sound similar, but they do very different jobs. One thing that makes Verse a little unusual: loops aren't just "do this repeatedly and forget about it." They can actually hand back a result when they're done, almost like a function returning an answer. Keep that in mind — it'll make more sense once we get to comprehensions below. The loop Keyword: Repeat Forever (Until You Say Stop) Think of loop as a ...