Can't seem to get my code to work! Anyone care to help?
It keeps giving my this error when I try to compile.

Please give me a good answer

main.cpp: In function 'int main()':
main.cpp:28:30: error: could not convert 'myString.std::basic_string<_CharT, _Traits, _Alloc>::operator=, std::allocator >(((const char*)"time"))' from 'std::basic_string' to 'bool'
if (myString = "time") {


#include
#include
#include
#include
#include

using namespace std;

string x;
string y;
string z;
string myString;

int main(){

cout << "Console 1.0 Beta" << endl << "Type End to quit (case sensitive)" << endl;

while (x != "End"){

cout << ">";

cin >> x;

cout << x << endl;

myString = x;

if (myString = "time") {
cout << time(0); << endl;
}

}
}