Is it possible "if k=undefined, then k=1" in desmos?

hi everyone:

attempt to if k=undefined, k=1, how is the syntax in desmos?

thank you so much!

You can use k=k to check if k is defined. For instance, if you had:
k={a=a:a,1}
then if a is defined, k will equal a; if a is undefined, k will be assigned the value 1.

1 Like