How to Use Functions in Blocks (Difficulty: 4/10) Need to know about functions

A screenshot of what?

iā€™m still kind of confused, could you explain what use this has?
Edit: Not trying to be rude sorry if it came off that way

The entire setup. Also, what do you mean by function?

It stores blocks that are used a lot in a trigger, and it can help reduce block use, since you have a limit of 75 blocks.

1 Like

I made a guide on it earlier. It takes in properties and then outputs other properties.

Here it is. The group on the left is the trigger-block Iā€™m running and the group on the right is the function.

Can you explain it? I didnā€™t get that guide either.

Confused, how does this not work? And what is ā€œfunctionsā€. Also, I donā€™t code in python! Middle schooler here!

1 Like

Functions just call block code, like a trigger is theoretically just a function I guess. I donā€™t really understand either.

1 Like

Time for some CS theory:
Functions take in inputs, perform some calculations, and then spit out an output.

What weā€™re doing here is changing the input of the function, then calling the function, the setting our property that we want to calculate with to the output of the function. To implement the function, I used some properties and a trigger to use the blocks.

In the picture, the input property is Divider and Dividend. The output is the remainder property. When the remainder property changes, it sets the trigger on the left off through the counter->property->trigger chain of channels. This, the trigger on the left will run different blocks than before because now the Amount of Functions Done property is 1.

3 Likes

OOOOOHHHHH! You mean functions like in math! Like the ones you graph! I was overthinking and though you meant some sort of coding thingie! Although, couldnā€™t you just add or subtract or whatever?

This is pretty useful, but itā€™s like a python trade off. Simplicity for less efficiency. (Lots of triggers recursing each other tends to be slow).

1 Like

Get not impossibled

1 Like

Well, notice his wording. He never said it was impossible, just didnā€™t think it was. Difference.

I think I get it, this sounds niche, but useful.

Also, I meant as of nowā€™s discoveries.

Bye guys.

?

Ok time to do integrals while Iā€™m taking a break from bitwise operations :smiley:

Also Iā€™m pretty sure integrals can be implemented in brain**** and brain**** can be implemented in creative.

What about double, triple, line, and surface integrals? The laplace transform? Fourier Series? Taylor Series (very possible)? Derivatives? Partial Derivatives? Are you going to implement that?