aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exists.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/exists.tcl b/exists.tcl
index 66fa71c..3ae3c58 100644
--- a/exists.tcl
+++ b/exists.tcl
@@ -16,7 +16,7 @@ proc+ exists::0_symbol {self args} {
}
proc+ exists::0_bang {self} {
- if {$@filename == {}} return
+ if {![info exists @filename]} return
pd::outlet $self 0 float [file exists $@filename]
}