Bug SS-2299
1 vote

IsDefined vs functions

Created by Davide on 2/25/2016 9:51 PM Last Updated by jun bon on 10/14/2025 1:04 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

Seems that IsDefined returns always true (1) when evaluating a variable passed through a function's argument (look at the attachment).

 

 

 

    jun bon (Tuesday, October 14, 2025 1:04 PM) #

Snow Rider 3D and Slope Rider both offer thrilling snow sports experiences with exciting gameplay and stunning visuals!

    makto (Thursday, September 25, 2025 5:58 AM) #

Good to know for avoiding sneaky bugs! Definitely something to keep in mind!

more info:Pasjans Pająk

    makto (Thursday, September 25, 2025 5:57 AM) #

Interesting space waves! Good to know that passing a variable as a function argument kinda "defines" it, even if it's empty. 

    makto (Thursday, September 25, 2025 5:57 AM) #

Definitely something to keep in mind when palying doodle baseball!

    suspectgrass (Thursday, September 18, 2025 6:30 AM) #

They often share stories about their most creative strategies, talk about bloodmoney techniques, and even compete to see who can get the best results.

    knitgrow (Friday, August 29, 2025 10:40 AM) #

That's an interesting catch. It definitely seems counterintuitive for IsDefined to return true on a variable that hasn't been explicitly assigned a value within the function itself. It's almost as if the simple act of passing it as an argument is enough to "define" it in the function's scope, even if its value is null or empty. That's a good thing to be aware of when debugging! golf hit

    Davide (Friday, February 26, 2016 6:47 PM) #

I understand, thank you!

    smath (Friday, February 26, 2016 5:01 PM) #

In the attached example "x" is defined. It is equal to "a".

Function arguments are always defined as it is impossible to call function in SMath Studio without specifying arguments.