# How to initialize a value such as "?float"

**URL:** <https://forums.unrealengine.com/t/how-to-initialize-a-value-such-as-float/1216411>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [July 1, 2023, 2:20pm UTC](https://forums.unrealengine.com/t/how-to-initialize-a-value-such-as-float/1216411 "2023-07-01T14:20:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WesLee1991](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WesLee1991](https://forums.unrealengine.com/u/WesLee1991)\
**Post date:** [July 1, 2023, 2:20pm UTC](https://forums.unrealengine.com/t/how-to-initialize-a-value-such-as-float/1216411/1 "2023-07-01T14:20:57Z")

</div>

I am trying to set a value on a widget, the value requires a type of “?float” - how would I create a float that is equal to 1.0 be valid for this widget’s value?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/b/91b0e79d10e0e288b51db9c3deba59791d3f8f49.png)

---

<div class="post-metadata">

**Author:** ![PiEqualsThree3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PiEqualsThree3](https://forums.unrealengine.com/u/PiEqualsThree3)\
**Post date:** [July 1, 2023, 3:29pm UTC](https://forums.unrealengine.com/t/how-to-initialize-a-value-such-as-float/1216411/2 "2023-07-01T15:29:17Z")

</div>

`option{1.0}` or `false` if no initial value

---

<div class="post-metadata">

**Author:** ![WesLee1991](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WesLee1991](https://forums.unrealengine.com/u/WesLee1991)\
**Post date:** [July 2, 2023, 10:36am UTC](https://forums.unrealengine.com/t/how-to-initialize-a-value-such-as-float/1216411/3 "2023-07-02T10:36:00Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 1, 2023, 10:36am UTC](https://forums.unrealengine.com/t/how-to-initialize-a-value-such-as-float/1216411/4 "2023-08-01T10:36:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
