b***@gmail.com
2016-12-25 23:11:42 UTC
Completely new to VBScript.
Doing a simple age calculation, but have some trouble getting the Else
If syntax right.
This is the block of code:
If (today_month < M) {
age--;
} else
F = parseInt(30.6001 * E);
DOM = (B - (D + F)) + (Q - Z); //day of the month
If (DOM > today_day) {
age--;
}
Any idea what is wrong here?
Note that the lines with F = and DOM = only need to run if today_month < M
is false.
RBS
Doing a simple age calculation, but have some trouble getting the Else
If syntax right.
This is the block of code:
If (today_month < M) {
age--;
} else
F = parseInt(30.6001 * E);
DOM = (B - (D + F)) + (Q - Z); //day of the month
If (DOM > today_day) {
age--;
}
Any idea what is wrong here?
Note that the lines with F = and DOM = only need to run if today_month < M
is false.
RBS