9 Replies
what's the context
i want to write javascript only if a c# boolean is true, context doesnt matter
i basically need the c# synthax to turn off right after the { and turn back on before the }
is this a .razor file? .js? .cs? blazor wasm? react? django?
razor file
this example might be simpler
would something like this work? I only have experience with wasm and using jsinterop
yes seems like it's working
Thanks
Consider closing this issue with
/close
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.