Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • Awesome Script
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
Awesome Script
Topic Started: Sep 23 2009, 01:27 PM (241 Views)
Reid Sep 23 2009, 01:27 PM Post #1
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Coding language
JavaScript
Code:
 
function istrue(a) {
if (a) return true;
return false;
}
function isfalse(a) {
if (!istrue(a)) return true;
return false;
}
Discuss.
Posted Image
Offline Profile Quote Post Goto Top
 
Dorith Sep 23 2009, 07:06 PM Post #2
Member Avatar
Has just entered the Matrix

Posts:
2,068
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
Coding language
JavaScript
Looks legit.
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Quote Post Goto Top
 
slayer766 Sep 23 2009, 07:31 PM Post #3
Member Avatar
Hello all

Posts:
1,652
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
I say it's redundant to call the second function.
Posted Image
Thanks Helena for the siggah!!!
Offline Profile Quote Post Goto Top
 
Reid Sep 23 2009, 07:34 PM Post #4
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Coding language
JavaScript
slayer766
Sep 23 2009, 07:31 PM
I say it's redundant to call the second function.
Slayer, don't be dissing this script. It's epic.
Posted Image
Offline Profile Quote Post Goto Top
 
Flavius Sep 23 2009, 10:53 PM Post #5
Member Avatar


Posts:
283
Group:
Member
Member
#360
Joined:
Jul 29, 2008
Coding language
HTML/CSS
Cool. What's it do?
Posted Image
Offline Profile Quote Post Goto Top
 
Choco Sep 24 2009, 05:38 AM Post #6
Member Avatar
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ

Posts:
589
Group:
Admins
Member
#3,272
Joined:
Jun 30, 2009
Coding language
Everything
Better:
Code:
 
function istrue(a) {
if(a==true) return istrue(a);
else if(a==false) return isfalse(a);
}
function isfalse(a) {
if(!istrue(a)) return isfalse(a);
else if(a==false) return istrue(a);
}
Posted ImageIt's a magical world, Hobbes, ol'd buddy... ...let's go exploring!
In progress: Something Special ;)
Offline Profile Quote Post Goto Top
 
... Sep 24 2009, 06:00 AM Post #7
...

Posts:
451
Group:
Dedicated
Member
#311
Joined:
Jul 26, 2008
l1r72
Sep 23 2009, 10:53 PM
Cool. What's it do?
It just it ^_^
Offline Profile Quote Post Goto Top
 
Dorith Sep 24 2009, 05:38 PM Post #8
Member Avatar
Has just entered the Matrix

Posts:
2,068
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
Coding language
JavaScript
Just figures if things are true or not... just a bit conspiracy really :glare:

Code:
 
function istrue(a) {
if(a==true) return istrue(a);
else if(a==false) return isfalse(a);
}

istrue(Dorith is Awesome)


B)
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Quote Post Goto Top
 
Reid Sep 24 2009, 05:48 PM Post #9
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Coding language
JavaScript
Dorith
Sep 24 2009, 05:38 PM
Just figures if things are true or not... just a bit conspiracy really :glare:

Code:
 
function istrue(a) {
if(a==true) return istrue(a);
else if(a==false) return isfalse(a);
}

istrue(Dorith is Awesome)


B)
SyntaxError: Unexpected identifier.
Posted Image
Offline Profile Quote Post Goto Top
 
Dorith Sep 24 2009, 05:58 PM Post #10
Member Avatar
Has just entered the Matrix

Posts:
2,068
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
Coding language
JavaScript
You might want to check FireBug. I believe you put:
Code:
 
function istrue(a) {
if(a==true) return istrue(a);
else if(a==false) return isfalse(a);
}

istrue(Reid is Awesome)

Instead...
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code University · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:14 PM Sep 9
Hosted for free by ZetaBoards