Flush

This Blogger version of the blog has been archived. You may visit the WordPress version of the blog at the regular address http://www.ivanwlam.com/blog/flush/.

Saturday, February 23, 2008

Will As Script

Has anyone looked at a will as a conditions-heavy programming document? For example in ActionScript:

var bob; //testator
var joe;
var sue;
var sam;
var x=200000; monetary assets

if (!bob){
    joe=100000;
    sue=x-joe;

    if (!joe){
        joe-=100000;
        sue+=50000;
        sam=(x-joe)-sue;

        if (!sue){

                ...

I know I probably broke the script when i made joe=100000 but later conditioned that he doesn't exist, but you get the idea. So many if’s.

Flush.

Labels: , , , ,