Back to index

Page Contents (page13)








new chars/structures on this page

all - the and bool array brak
Bool array braks use boolean op between all array elements
all( array(a , b , c) ) = a && b && c

none - uses nor between all array elements
nor returns true is both are false

any - uses the OR between all array elements

min - returns the smallest value in the array

max - returns the largest value in the array

introduce array conditional bool loops
easy way to discuss arrays and groups
"all of x meet condition y"
"non of x have element y"
"at least some of x have property y" , etc..

all meet condition
uses the and loop on an array conditional

any meet condition
uses the or loop on an array conditional

none meet condition
uses the nor loop on an array conditional







full page desc content

all/any/none/any-dont min/max establish that reg brackets don't add depth to arrays. they are only used to wrap them for assignments. double or triple wrapping them does do anything different than single wrapping. add bit wise bool ops I have not added them yet because they don't have immediate use, but considering procedural is such a fundamental layer, and numbers are bit constructed, it feels obvious that bit-wise operators should be included in Uscript. *show* all( v_20 _10 ) :: all - the and bool array brak
Bool array braks use boolean op between all array elements
all( array(a .. b .. c) ) = a && b && c none( v_20 _10 ) :: none - uses nor between all array elements
nor returns true is both are false any( v_20 _10 ) :: any - uses the OR between all array elements min ( v_20 _16 ) :: min - returns the smallest value in the array max ( v_20 _16 ) :: max - returns the largest value in the array _1 :: introduce array conditional bool loops
easy way to discuss arrays and groups
"all of x meet condition y"
"non of x have element y"
"at least some of x have property y" .. etc.. v1 all[ . . . ] :: all meet condition
uses the and loop on an array conditional v1 any[ . . . ] :: any meet condition
uses the or loop on an array conditional v1 none[ . . . ] :: none meet condition
uses the nor loop on an array conditional