VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse UEFN›Verse Language·Up to UEFN · Verse Language·37 of 123 in Verse Language

First Verse Script Practice

Lesson 2: Practice Time!

Ready to write some code?

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"}") |
    
    Copy full snippet
    
  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("🐈💗🐟 = {"🐈💗🐟"}")
    Copy full snippet
    

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.

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

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 · 37 of 123
Prev
learn code basics 1 practice time in verse
Next
learn code basics 3 practice time in verse
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2024-12-05T00:00:00+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