What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

using the reply from a if statement to display a result

karneet

Junior Member
Joined
Aug 28, 2013
Messages
1
Reaction score
0
HTML Coins
0
Hello everyone, I am new to HTML and just wanted to help my girl friend build her website. She wants to make it such that the user needs to answer a set of questions that has a condition and depending on each reply the result provided would be a alert box stating the data. for example she wants to check the age and marital status. if the age is less than 25 and marital status is single : one option should be displayed similarly if the age is less than 25 but the marital status is divorced another alert box should poop up. Can anyone please please help me with the base code in which i can check for the condition and call a function that does this. I can amend the code according to her need but i am struggling to determine the code. if i can help i want something like this:
function start(age(), abc())
{
abc();
age();
}

if(age<25 && abc=yes)
{
alert("you can apply");
}
else if( age>25 && abc =yes)
{
alert("you can apply");
}
else if(age<25 && abc=no)
{
alert("no");
}
else
{
alert("no");
}
 
Since the only real test is for abc, it would be easier to do this:
Code:
if ( abc == 'yes' ) {
alert("you can apply"); 
}
else
{
alert("no");
}
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back