# Can't edit a string for "Has Launch Option"

**URL:** <https://forums.unrealengine.com/t/cant-edit-a-string-for-has-launch-option/457993>\
**Category:** Blueprint\
**Tags:** launcher, unreal-engine, options, UE4, question, Blueprint\
**Created:** [November 4, 2019, 1:43am UTC](https://forums.unrealengine.com/t/cant-edit-a-string-for-has-launch-option/457993 "2019-11-04T01:43:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xnooztv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xnooztv](https://forums.unrealengine.com/u/xnooztv)\
**Post date:** [November 4, 2019, 1:43am UTC](https://forums.unrealengine.com/t/cant-edit-a-string-for-has-launch-option/457993/1 "2019-11-04T01:43:36Z")

</div>

Hello,  
I’m trying to check if a launch parameter is set when opening my game. I use my own game launcher and I do not want the player to open the game without launching the launcher.  
Here is the structure of my blueprint:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/a/1bab6c2e2ef6d6a1e045c4f7a2cee01796b518cb.png)

But I can’t edit “Option to check” in “Has Launch Option”.  
I would like to edit the string.

Can you help me please ?

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [November 4, 2019, 5:54am UTC](https://forums.unrealengine.com/t/cant-edit-a-string-for-has-launch-option/457993/2 "2019-11-04T05:54:20Z")

</div>

yes, simply disconnect the sting from getCommandLine to hasLaunchOption. The hasLaunchOption Node does this automatically and you can just input your string into the node it should check for. Other way I can recommend you, you can pass options to the gamemode separated with “?” (and of course you can also specify or overwrite the gamemmode on commandline) - this gives you additional possibilites to pass options to your game

---

<div class="post-metadata">

**Author:** ![xnooztv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xnooztv](https://forums.unrealengine.com/u/xnooztv)\
**Post date:** [November 4, 2019, 11:23am UTC](https://forums.unrealengine.com/t/cant-edit-a-string-for-has-launch-option/457993/3 "2019-11-04T11:23:06Z")

</div>

Oh, thanks it works 🙂

How to make sure that if the launch parameter is incorrect, the level does not open?  
Do you have a example please? 🙂

Here is the structure of my blueprint and I do not know if it’s okay:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/5/0f529e0f1a100f35c53ccb9cd0c4837784c56935.png)

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [November 4, 2019, 2:50pm UTC](https://forums.unrealengine.com/t/cant-edit-a-string-for-has-launch-option/457993/4 "2019-11-04T14:50:56Z")

</div>

The output of hasLaunchOption does not belong into the Absolute bool of openLevel. What you need is a branch. Put the returnValue into the branch, in TRUE load your level, in FALSE do what you’d like to do if wrong launch option was given.

---

<div class="post-metadata">

**Author:** ![xnooztv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xnooztv](https://forums.unrealengine.com/u/xnooztv)\
**Post date:** [November 4, 2019, 3:12pm UTC](https://forums.unrealengine.com/t/cant-edit-a-string-for-has-launch-option/457993/5 "2019-11-04T15:12:38Z")

</div>

Thanks you. It works very well 🙂  
Here is the solution for other people:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/e/dee292e3188ad7ace9ababf67599becd648c9c4b.png)

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [November 4, 2019, 5:28pm UTC](https://forums.unrealengine.com/t/cant-edit-a-string-for-has-launch-option/457993/6 "2019-11-04T17:28:09Z")

</div>

looks good. feel free to tick this answer as correct so the question is marked as solved
