# Passing a multiline variable as argument to a Python Action script

**URL:** https://www.finalbuilder.com/forums/t/passing-a-multiline-variable-as-argument-to-a-python-action-script/7602
**Category:** Discussion
**Created:** [January 22, 2025, 1:55pm UTC](https://www.finalbuilder.com/forums/t/passing-a-multiline-variable-as-argument-to-a-python-action-script/7602 "2025-01-22T13:55:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ktopaz](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/ktopaz/32/2390_2.png) [@ktopaz](https://www.finalbuilder.com/forums/u/ktopaz)
#### Post date: [January 22, 2025, 1:58pm UTC](https://www.finalbuilder.com/forums/t/passing-a-multiline-variable-as-argument-to-a-python-action-script/7602/2 "2025-01-22T13:58:39Z")

</div>

Ok I got it while I was writing the question I read the docs for Expression Objects  
a bit more in depth, and figured it out:

> $Utils.GetString(%msg%).Split(“\r\n”,true,true).Join(" ",“double”,true)$

I figured I’d still post it here along with the answer  
just in case it helps anyone else in the future… 🙂

---

_[View the full topic](https://www.finalbuilder.com/forums/t/passing-a-multiline-variable-as-argument-to-a-python-action-script/7602)._
