So I want to make a function with a parametre which is a conditon, so I can call the the function with different conditions eg.

```
int input(string condition){
    int number;
    cin>>number;
    if (!condition){
        cout<<"Wooah maaan, thx!"
    } else {
       cout<<"You can do better!"
    return number;
}

void something(){
   int g_num;
   cout<<"Give me a number between 1 and 6";
   g_num=input("number<6&&number>1");
}

```

How is this possible, because with similar I get en error:

> 
> cannot convert 'std::string' to 'bool' in assignmen
> 
> 
> 

Any ideas?

(I just started learning c++, so please don't judge me, I know I am lame.)