Using Await AppendAsync in a switch/if statement

Hello folks,

I have a major issue with the await AppendAsync function. It works fine whenever I use that function outside of any switch/if/for/while statements, but I really want to keep on using that function because it helps me with what I’m doing.

Here is the PG for what I’m doing: My PG

Thanks in advance.

@steveS, would something like this work for you?


This works great. Thank you :smiley:

1 Like