VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Fortnite›Verse Language·Up to Fortnite · Verse Language·7 of 570 in Verse Language

Practice Time: Building Your First Verse Device

Ready to write some code?

  1. Open your hello_world_device.verse file from Modify and Run Your First Verse Program. You can see a couple of examples of the Print() function in the file already.

  2. Use Print() to see the effect of combining different operators and literal values. Enter the first line of code below. Work out what will print to the screen before you run the line, then run it to see if you were right.

    |  |  |
    | --- | --- |
    |  | Print("5 + -2 = {5 + -2}") |
    |  | Print("15.0 / 7.0 = {15.0 / 7.0}") |
    |  | Print("I + Love + Verse = {"I" + "Love" + "Verse"}") |
    

    Print("5 + -2 = {5 + -2}") Print("15.0 / 7.0 = {15.0 / 7.0}") Print("I + Love + Verse = {"I" + "Love" + "Verse"}")

    Copy full snippet(3 lines long)

  3. Repeat this step for the second line (including working out what should print), then again for the third line.

  4. Now copy and paste this line to see what happens! Print("🐈💗🐟 = {"🐈💗🐟"}")

Complete Script

This is all of the code covered in this exercise. If you get stuck, you can see what the complete script looks like and even copy and paste it into your own Verse file to see the correct end result.

|  |  |
| --- | --- |
|  | using { /Fortnite.com/Devices } |
|  | using { /Verse.org/Simulation } |
|  |  |
|  | hello_world_device := class(creative_device): |
|  |  |
|  | # Runs when the device is started in a running game |
|  | OnBegin<override>()<suspends> : void = |
|  |  |
|  | Print("5 + -2 = {5 + -2}") |
|  | Print("15.0 / 7.0 = {15.0 / 7.0}") |
|  | Print("I + Love + Verse = {"I" + "Love" + "Verse"}") |
|  | Print("🐈💗🐟 = {"🐈💗🐟"}") |

using { /Fortnite.com/Devices } using { /Verse.org/Simulation } hello_world_device := class(creative_device):

Runs when the device is started in a running game

OnBegin<override>()<suspends> : void = Print("5 + -2 = {5 + -2}") Print("15.0 / 7.0 = {15.0 / 7.0}") Print("I + Love + Verse = {"I" + "Love" + "Verse"}") Print("🐈💗🐟 = {"🐈💗🐟"}")

Collapse code Copy full snippet(12 lines long)

Next Lesson

  • [Lesson 3: Storing and Using Information

    Lesson 3: Storing and Using Information

    Programs need information to know what to do. Learn different ways to store information in your program.](/docs/documentation/en-us/fortnite/basics-of-writing-code-3-storing-and-using-information-in-verse.md)

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Verse Language · 7 of 570
Prev
basics of writing code 2 basic programming concepts in verse
Next
basics of writing code 3 practice time in verse
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2026-05-12T21:47:57.382750+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse