Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Booleans with Functions

Quote Reply
Booleans with Functions
Why doesn't this work -
<%if Dbsql::scFileFind::get_files($school,'picture_lesson','1') eq 'no'%>Do something<%else%>Dbsql::scFileFind::get_files($school,'picture_lesson','1')<%endif%>
but this does -
<%set return_result = Dbsql::scFileFind::get_files($school,'picture_lesson','1')%>
<%if return_result eq 'no'%>Do something<%else%><%return_result%><%endif%>

Thank you.
Simon.
Subject Author Views Date
Thread Booleans with Functions jai 2085 Feb 20, 2005, 7:15 PM
Post Re: [jai] Booleans with Functions
webmaster33 2024 Feb 20, 2005, 9:11 PM