Dasel
v3
v3
  • Getting started
    • Introduction
    • Installation
    • Concepts
      • Expressions
      • Branches
  • Syntax
    • Whitespace
    • Types/Literals
    • String concatenation
    • Arrays/slices
    • Objects/maps
    • Conditionals
    • Spread
    • Coalesce
  • Input/Output
    • Read/Write formats
    • Stdin
    • Stdout
    • Variables
    • Read/Writer flags
  • Functions
    • add
    • min
    • max
    • reverse
    • toString
    • toInt
    • toFloat
    • typeOf
    • map
    • filter
    • sortBy
    • parse
    • base64e
    • base64d
Powered by GitBook
On this page
  1. Syntax

String concatenation

PreviousTypes/LiteralsNextArrays/slices

Last updated 7 months ago

To concatenate strings, simply use the + operator.

To concatenate non-string values into string values, use the function.

Examples

"hello" + " " + "world" // "hello world"
"i am " + toString(100) + " years old" // "i am 100 years old"

toString