i'm making a javascript mod (name: xi). one of the first things im making in xi is is_true
, an event type. here is how it is used:
event(is_true(insert boolean), function(){
});
function:
if (eventType == is_true(// "any" selector)) {
}
i need an "[any value]" selector, kinda like the one in css except it returns any value.
I cannot understand this stuff
well, say that the css selector *
existed in javascript and it behaved like this:
typeof * // Returns "Any"
and if List()
would be a thing, List(*)
could return:
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, ... Infinity, "a", "b", "c", "d", "e", "f", ... true, false, ...]
so have you found something similar to it?
<hr>
time for a q&a!!!
question number one:
when will is true return false
is_true kills 99.99% boolean (is_true is not boolean but it involves something like wait until [boolean here])
but anyways,
// if is_true() was a boolean
is_true(not(true)) // javascript ! is xi "not"
// D U H .
or
is_true(false)
D U H
WAIT NEVER MIND
there is a solution
var Any;
and if you need multiple "any"'s, u just gotta do
Any
Any_ii
Any_iii
...
and
// kills 99.99% boolean
event