Board index FlightGear Development Nasal

String concatenation

Nasal is the scripting language of FlightGear.

String concatenation

Postby Jabberwocky » Thu Jul 31, 2014 6:36 pm

Hi,

in the Wiki, I find how to do MP protocols, manipulate the route manager and so on, but what is the function for string concatenation or is there an operator defined?

J.
Jabberwocky
Retired
 
Posts: 1316
Joined: Sat Mar 22, 2014 8:36 pm
Callsign: JWOCKY
Version: 3.0.0
OS: Ubuntu 14.04

Re: String concatenation

Postby Philosopher » Thu Jul 31, 2014 6:39 pm

~ (tilde, + plus is mathematical addition)
Philosopher
 
Posts: 1593
Joined: Sun Aug 12, 2012 7:29 pm

Re: String concatenation

Postby Hooray » Thu Jul 31, 2014 6:42 pm

Code: Select all
var str = "ABC" ~ "DEF";
print(str ~"...");
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: String concatenation

Postby Johan G » Sat Aug 02, 2014 8:23 pm

Just a side note, it took me about two years of visiting the forum nearly daily and skimming through some of the files in data/Nasal/ before I got it. ;) :lol:

(Nope, I still have not done any nasal programming yet, with the rare exception of my input configuration files.)
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6634
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit


Return to Nasal

Who is online

Users browsing this forum: No registered users and 2 guests