Calling Functions Within Functions

Calling Functions Within Functions

This is my script for my function:

  1. void both.AlpineFarm(int Id1, int ID)
  2. {
  3.     ter = Alpine_Farm[Id1 = input.Id1].Id1;
  4.     tep = Alpine_Farm[Id1 = input.Id1].ID;
  5.     if (ter  =  null)
  6.     {
  7.         thisapp.add.AlpineFarm(ter);
  8.     }
  9.     else if (ter  !=  null)
  10.     {
  11.         thisapp.edit.AlpineFarm(tep);
  12.     }
  13. }

When I try to save it, it gives me the following error message:

Encountered "." at line 7, column 20.
Was expecting one of:
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...
"(" ...

But I can save it as:

void both.AlpineFarm(int Id1, int ID)
{
    ter = Alpine_Farm[Id1 = input.Id1].Id1;
    tep = Alpine_Farm[Id1 = input.Id1].ID;
    if (ter  =  null)
    {
        thisapp.edit.AlpineFarm(ter);
    }
    else if (ter  !=  null)
    {
        thisapp.edit.AlpineFarm(tep);
    }
}

Below I have supplied the script for both functions edit.AlpineFarm & add.AlpineFarm

  1. void add.AlpineFarm(int Id1)
  2. {
  3.     openUrl("https://creator.zoho.com/jpiajr/compost-tracker-supreme/form-perma/Alpine_Farm/Id1=" + input.Id1, "Same window");
  4. }


  5. void edit.AlpineFarm(int ID)
  6. {
  7.     openUrl("https://creator.zoho.com/jpiajr/compost-tracker-supreme/Alpine_Farm/record-edit/Alpine_Farm_View/" + input.ID, "Same window");
  8. }



Any ideas on why this is happening?

Also I have allowed access for support.