Yipes! Spaghetti code!
You can add a variable to itself as long as you keep nesting:
<$set name="s" value="5">
<$set name="s" filter="[<s>add{!!addme}]">
<<s>>
</$set>
</$set>
What's actually happening is each "set" is creating its own name space.
For more complicated scenarios you might be able to use recursion.
There is no sine or cosine functionality AFAIK in TW.
On Monday, October 28, 2019 at 10:49:08 AM UTC-7, Ste Wilson wrote:
>
> I've found some simple ish basic programs in an old text book... Hmm
> thought I.. They could be use full.. Can I tiddlywiki them (because of
> course, everything should be tiddlywikyable)... So...
>
> While I understand what's going on here for example..
>
> 110 INPUT P, A
> 120 IF P= 0 AND A=0 THEN GOTO 180
> 130 A=R*A
> 140 H=H+P*COS(A)
> 150 V=V+P*SIN(A)
> 160 PRINT "NEXT KNOWN FORCE: "
> 170 GOTO 110
>
> My initial thought was I could do that.. Maybe with mathcell.. But then I
> got to lines 130, 140 and 150...can I do that in wikitext with fields?
>
> Ste
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/36f44fd8-189d-4381-a677-9b250c33679c%40googlegroups.com.