# Function with no\_rollback effect can't be used after if statement

**URL:** <https://forums.unrealengine.com/t/function-with-no-rollback-effect-cant-be-used-after-if-statement/1260954>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [August 14, 2023, 6:28pm UTC](https://forums.unrealengine.com/t/function-with-no-rollback-effect-cant-be-used-after-if-statement/1260954 "2023-08-14T18:28:45Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![t.tutiya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/t.tutiya/32/924637_2.png) [@t.tutiya](https://forums.unrealengine.com/u/t.tutiya)\
**Post date:** [August 18, 2023, 11:01am UTC](https://forums.unrealengine.com/t/function-with-no-rollback-effect-cant-be-used-after-if-statement/1260954/13 "2023-08-18T11:01:16Z")

</div>

@Ep8Script  
Sorry. You are right.

@Fisher007  
In verse, indentation by whitespace is a very important rule for defining any scope.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/7/b77e99ccfd7cbc793054c8af78ef53dd6771608c.png)

See also.

> [@What is wrong with my function?](https://forums.unrealengine.com/t/what-is-wrong-with-my-function/1248221/13):
>
> using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Diagnostics } using { /Verse.org/Random } See [Create Your Own Device Using Verse](https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse) for how to create a verse device. A Verse-authored creative device that can be placed in a level testing := class(creative\_device): @editable OrderTimer : timer\_device = timer\_device{} @editable ButtonHouse1 : conditional\_button\_device = conditional\_button\_device{} @editable ButtonHouse2 : conditional\_button\_de…

---

_[View the full topic](https://forums.unrealengine.com/t/function-with-no-rollback-effect-cant-be-used-after-if-statement/1260954)._
